临时需要一个价格比较app

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-29 20:48:12 +08:00
parent fbd1ea6aa8
commit 925f27d2db
13 changed files with 104 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
defined('IN_TS') or die('Access Denied.');
return array (
'name' => '价格比较1',
'version' => '0.1',
'desc' => '价格',
'url' => 'https://lmve.net/',
'email' => 'kevin@lmve.net',
'author' => 'kevin',
'author_url' => 'https://lmve.net/',
'isoption' => '1',
'isinstall' => '1',
'isappnav' => '1',
'ismy'=>'1',
);
+11
View File
@@ -0,0 +1,11 @@
<?php
defined('IN_TS') or die('Access Denied.');
// 管理入口
$path='app/' . $TS_URL['app'] . '/action/admin/' . $mg . '.php';
//echo $path;
if (is_file($path)) {
include_once $path;
} else {
qiMsg('sorry:no index!');
}
+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='工单';
+14
View File
@@ -0,0 +1,14 @@
<?php
defined('IN_TS') or die('Access Denied.');
switch($ts){
//基本配置
case "":
include template("admin/options");
break;
}
+4
View File
@@ -0,0 +1,4 @@
<?php
defined('IN_TS') or die('Access Denied.');
include template('index');
+2
View File
@@ -0,0 +1,2 @@
<?php
class pricetrend extends tsApp{}
+6
View File
@@ -0,0 +1,6 @@
<?php
defined('IN_TS') or die('Access Denied.');
$skin = 'default';
$TS_APP['appname'] = '比价';
+3
View File
@@ -0,0 +1,3 @@
{php include pubTemplate("header")}
{php include pubTemplate("footer")}
+2
View File
@@ -9,4 +9,6 @@ switch($ts){
break;
}
+4
View File
@@ -0,0 +1,4 @@
<?php
defined('IN_TS') or die('Access Denied.');
include template("admin/wolist");
+2 -1
View File
@@ -1,4 +1,5 @@
<?php
defined('IN_TS') or die('Access Denied.');
include pubTemplate("header");
include template('index');
include pubTemplate("footer");
+2 -2
View File
@@ -3,9 +3,9 @@
<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']=='wolist'}class="select"{/if}><a href="{SITE_URL}index.php?app=workorder&ac=admin&mg=wolist">工单列表</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>
<li {if $GLOBALS['TS_URL']['mg']=='dbc'}class="select"{/if}><a href="{SITE_URL}index.php?app=workorder&ac=admin&mg=dbc">数据库管理</a></li>
+14
View File
@@ -0,0 +1,14 @@
{php include pubTemplate("header_admin")}
<!--main-->
<div class="midder">
{php include template("admin/menu");}
</div>
{php include pubTemplate("footer_admin")}