只有架构

This commit is contained in:
2023-06-23 18:58:13 +08:00
parent abe7f07a03
commit 0cb751da4c
4 changed files with 79 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
CREATE TABLE IF NOT EXISTS `ts_workorder` (
`workorderid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'orderID',
`userid` int(11) NOT NULL DEFAULT '0' COMMENT 'userID',
`cateid` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '标题',
`tags` varchar(128) NOT NULL DEFAULT '' COMMENT '标签',
`gaiyao` varchar(128) NOT NULL DEFAULT '' COMMENT '内容概要',
`path` char(32) NOT NULL DEFAULT '' COMMENT '路径',
`photo` char(32) NOT NULL DEFAULT '' COMMENT '图片路径',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否置顶0否1是',
`isaudit` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否审核',
`count_comment` int(11) NOT NULL DEFAULT '0' COMMENT '统计评论数',
`addtime` datetime NOT NULL DEFAULT '1970-01-01 00:00:01' COMMENT '时间',
`uptime` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`workorderid`),
KEY `addtime` (`addtime`),
KEY `cateid` (`cateid`),
KEY `title` (`title`),
KEY `tags` (`tags`,`isaudit`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='工单';
+10
View File
@@ -1,2 +1,12 @@
<?php <?php
defined('IN_TS') or die('Access Denied.'); defined('IN_TS') or die('Access Denied.');
switch($ts){
//基本配置
case "":
include template("admin/options");
break;
}
+13
View File
@@ -0,0 +1,13 @@
<div class="tabnav">
<h6>工单管理</h6>
<ul>
<li {if $GLOBALS['TS_URL']['mg']=='options'}class="select"{/if}><a href="{SITE_URL}index.php?app=workorder&ac=admin&mg=options">配置</a></li>
<li {if $mg=='permissions'}class="select"{/if}><a href="">权限配置</a></li>
<li {if $GLOBALS['TS_URL']['mg']=='weibo'}class="select"{/if}><a href="{SITE_URL}index.php?app=workorder&ac=admin&mg=dbc">数据库管理</a></li>
</ul>
</div>
<div style="height: 100px;"></div>
+33
View File
@@ -0,0 +1,33 @@
{php include pubTemplate("header_admin")}
<!--main-->
<div class="midder">
{php include template("admin/menu");}
<form method="POST" action="">
<table class="table table-hover">
<tr><td width="150">APP名称:</td><td><input style="width:300px;" name="option[appname]" value="{$strOption[appname]}" /></td></tr>
<tr><td>APP介绍:</td><td><textarea style="width:300px;" name="option[appdesc]">{$strOption[appdesc]}</textarea></td></tr>
<tr><td>APP关键词:</td><td><input style="width:300px;" name="option[appkey]" value="{$strOption[appkey]}" /></td></tr>
<tr><td>应用开启/关闭:</td><td><input type="radio" name="option[isenable]" value="0" {if $strOption['isenable']=='0'}checked{/if} />开启 <input type="radio" name="option[isenable]" value="1" {if $strOption['isenable']=='1'}checked{/if} />关闭 <span>(关闭后应用无法访问)</span></td></tr>
<tr><td>会员发布:</td><td><input type="radio" name="option[allowpost]" value="0" {if $strOption['allowpost']=='0'}checked{/if} />不允许 <input type="radio" name="option[allowpost]" value="1" {if $strOption['allowpost']=='1'}checked{/if} />允许</td></tr>
<tr><td>是否审核:</td><td><input type="radio" name="option[isaudit]" value="0" {if $strOption['isaudit']=='0'}checked{/if} />不审核 <input type="radio" name="option[isaudit]" value="1" {if $strOption['isaudit']=='1'}checked{/if} />审核</td></tr>
<tr><td></td><td>
<input type="hidden" name="token" value="{$_SESSION['token']}" />
<input class="btn btn-primary" type="submit" value="提交修改" /></td></tr>
</table>
</form>
</div>
{php include pubTemplate("footer_admin")}