@@ -34,3 +34,5 @@ src/data/rss/* | |||||
src/data/rssmap.html | src/data/rssmap.html | ||||
src/data/sitemap.html | src/data/sitemap.html | ||||
src/data/js/ | src/data/js/ | ||||
src/data/vote/*.js | |||||
src/data/module/*.xml |
@@ -4,16 +4,18 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>编辑评论</title> | <title>编辑评论</title> | ||||
<style type="text/css"> | <style type="text/css"> | ||||
<!-- | |||||
body { | body { | ||||
background-image: url(images/allbg.gif); | background-image: url(images/allbg.gif); | ||||
} | } | ||||
--> | |||||
</style> | </style> | ||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<table class="table maintable mt-3" width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | <tr> | ||||
<td width="100%" height="24" colspan="2" background="images/tbg.gif"> | <td width="100%" height="24" colspan="2" background="images/tbg.gif"> | ||||
<strong><a href="<?php echo $ENV_GOBACK_URL; ?>"><u>表单管理</u></a> >> 编辑评论:</strong> </td> | <strong><a href="<?php echo $ENV_GOBACK_URL; ?>"><u>表单管理</u></a> >> 编辑评论:</strong> </td> | ||||
@@ -56,10 +58,10 @@ body { | |||||
<td height="40" width='600' colspan="2" align="center"> | <td height="40" width='600' colspan="2" align="center"> | ||||
<input type="submit" name="Submit1" class='coolbg np' value="保存更改" /> | |||||
<input type="button" name="Submit2" class='coolbg np' value="不理返回" onClick="location='<?php echo $ENV_GOBACK_URL; ?>';" /> | |||||
<button type="submit" name="Submit1" class='btn btn-secondary'>保存更改</button> | |||||
<button type="button" name="Submit2" class='btn btn-secondary' onClick="location='<?php echo $ENV_GOBACK_URL; ?>';">不理返回</button> | |||||
</td> | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</form> | </form> | ||||
@@ -64,10 +64,10 @@ if(!empty($fields)) | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="3" height='36' align="center" bgcolor="#F8FCF1"> | <td colspan="3" height='36' align="center" bgcolor="#F8FCF1"> | ||||
<label><input type="radio" name="action" value="check" class='np' />审核</label> | |||||
<label><input type="radio" name="action" value="delete" class='np' />删除</label> | |||||
<label><input type="radio" name="action" value="check" class='np' /> 审核</label> | |||||
<label><input type="radio" name="action" value="delete" class='np' /> 删除</label> | |||||
| | ||||
<input type="submit" name="submit" value="提交" class='np coolbg' /> | |||||
<button type="submit" name="submit" class='btn btn-secondary'>提交</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,4 +1,5 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* | * | ||||
* 自定义表单 | * 自定义表单 | ||||
@@ -9,111 +10,89 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/../include/common.inc.php"); | |||||
require_once(dirname(__FILE__) . "/../include/common.inc.php"); | |||||
$diyid = isset($diyid) && is_numeric($diyid) ? $diyid : 0; | $diyid = isset($diyid) && is_numeric($diyid) ? $diyid : 0; | ||||
$action = isset($action) && in_array($action, array('post', 'list', 'view')) ? $action : 'post'; | $action = isset($action) && in_array($action, array('post', 'list', 'view')) ? $action : 'post'; | ||||
$id = isset($id) && is_numeric($id) ? $id : 0; | $id = isset($id) && is_numeric($id) ? $id : 0; | ||||
if(empty($diyid)) | |||||
{ | |||||
if (empty($diyid)) { | |||||
showMsg('非法操作!', 'javascript:;'); | showMsg('非法操作!', 'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
require_once DEDEINC.'/diyform.cls.php'; | |||||
require_once DEDEINC . '/diyform.cls.php'; | |||||
$diy = new diyform($diyid); | $diy = new diyform($diyid); | ||||
/*---------------------------- | /*---------------------------- | ||||
function Post(){ } | function Post(){ } | ||||
---------------------------*/ | ---------------------------*/ | ||||
if($action == 'post') | |||||
{ | |||||
if(empty($do)) | |||||
{ | |||||
if ($action == 'post') { | |||||
if (empty($do)) { | |||||
$postform = $diy->getForm(true); | $postform = $diy->getForm(true); | ||||
include DEDEROOT."/templets/plus/{$diy->postTemplate}"; | |||||
include DEDEROOT . "/templets/plus/{$diy->postTemplate}"; | |||||
exit(); | exit(); | ||||
} | |||||
elseif($do == 2) | |||||
{ | |||||
} elseif ($do == 2) { | |||||
$dede_fields = empty($dede_fields) ? '' : trim($dede_fields); | $dede_fields = empty($dede_fields) ? '' : trim($dede_fields); | ||||
$dede_fieldshash = empty($dede_fieldshash) ? '' : trim($dede_fieldshash); | $dede_fieldshash = empty($dede_fieldshash) ? '' : trim($dede_fieldshash); | ||||
if(!empty($dede_fields)) | |||||
{ | |||||
if($dede_fieldshash != md5($dede_fields.$cfg_cookie_encode)) | |||||
{ | |||||
if (!empty($dede_fields)) { | |||||
if ($dede_fieldshash != md5($dede_fields . $cfg_cookie_encode)) { | |||||
showMsg('数据校验不对,程序返回', '-1'); | showMsg('数据校验不对,程序返回', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
$diyform = $dsql->getOne("select * from #@__diyforms where diyid='$diyid' "); | |||||
if(!is_array($diyform)) | |||||
{ | |||||
$diyform = $dsql->getOne("SELECT * from `#@__diyforms` WHERE diyid='$diyid' "); | |||||
if (!is_array($diyform)) { | |||||
showmsg('自定义表单不存在', '-1'); | showmsg('自定义表单不存在', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$addvar = $addvalue = ''; | $addvar = $addvalue = ''; | ||||
if(!empty($dede_fields)) | |||||
{ | |||||
if (!empty($dede_fields)) { | |||||
$fieldarr = explode(';', $dede_fields); | $fieldarr = explode(';', $dede_fields); | ||||
if(is_array($fieldarr)) | |||||
{ | |||||
foreach($fieldarr as $field) | |||||
{ | |||||
if($field == '') continue; | |||||
if (is_array($fieldarr)) { | |||||
foreach ($fieldarr as $field) { | |||||
if ($field == '') continue; | |||||
$fieldinfo = explode(',', $field); | $fieldinfo = explode(',', $field); | ||||
if($fieldinfo[1] == 'textdata') | |||||
{ | |||||
if ($fieldinfo[1] == 'textdata') { | |||||
${$fieldinfo[0]} = FilterSearch(stripslashes(${$fieldinfo[0]})); | ${$fieldinfo[0]} = FilterSearch(stripslashes(${$fieldinfo[0]})); | ||||
${$fieldinfo[0]} = addslashes(${$fieldinfo[0]}); | ${$fieldinfo[0]} = addslashes(${$fieldinfo[0]}); | ||||
} else { | |||||
${$fieldinfo[0]} = GetFieldValue(${$fieldinfo[0]}, $fieldinfo[1], 0, 'add', '', 'diy', $fieldinfo[0]); | |||||
} | } | ||||
else | |||||
{ | |||||
${$fieldinfo[0]} = GetFieldValue(${$fieldinfo[0]}, $fieldinfo[1],0,'add','','diy', $fieldinfo[0]); | |||||
} | |||||
$addvar .= ', `'.$fieldinfo[0].'`'; | |||||
$addvalue .= ", '".${$fieldinfo[0]}."'"; | |||||
$addvar .= ', `' . $fieldinfo[0] . '`'; | |||||
$addvalue .= ", '" . ${$fieldinfo[0]} . "'"; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
$query = "INSERT INTO `{$diy->table}` (`id`, `ifcheck` $addvar) VALUES (NULL, 0 $addvalue); "; | |||||
$query = "INSERT INTO `{$diy->table}` (`id`, `ifcheck` $addvar) VALUES (NULL, 0 $addvalue); "; | |||||
if($dsql->ExecuteNoneQuery($query)) | |||||
{ | |||||
if ($dsql->ExecuteNoneQuery($query)) { | |||||
$id = $dsql->GetLastID(); | $id = $dsql->GetLastID(); | ||||
if($diy->public == 2) | |||||
{ | |||||
if ($diy->public == 2) { | |||||
//diy.php?action=view&diyid={$diy->diyid}&id=$id | //diy.php?action=view&diyid={$diy->diyid}&id=$id | ||||
$goto = "diy.php?action=list&diyid={$diy->diyid}"; | $goto = "diy.php?action=list&diyid={$diy->diyid}"; | ||||
$bkmsg = '发布成功,现在转向表单列表页...'; | $bkmsg = '发布成功,现在转向表单列表页...'; | ||||
} | |||||
else | |||||
{ | |||||
} else { | |||||
$goto = !empty($cfg_cmspath) ? $cfg_cmspath : '/'; | $goto = !empty($cfg_cmspath) ? $cfg_cmspath : '/'; | ||||
$bkmsg = '发布成功,请等待管理员处理...'; | $bkmsg = '发布成功,请等待管理员处理...'; | ||||
} | } | ||||
showmsg($bkmsg, $goto); | |||||
ShowMsg($bkmsg, $goto); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/*---------------------------- | /*---------------------------- | ||||
function list(){ } | function list(){ } | ||||
---------------------------*/ | |||||
else if($action == 'list') | |||||
{ | |||||
if(empty($diy->public)) | |||||
{ | |||||
showMsg('后台关闭前台浏览', 'javascript:;'); | |||||
---------------------------*/ else if ($action == 'list') { | |||||
if (empty($diy->public)) { | |||||
ShowMsg('后台关闭前台浏览', 'javascript:;'); | |||||
exit(); | exit(); | ||||
} | } | ||||
include_once DEDEINC.'/datalistcp.class.php'; | |||||
if($diy->public == 2) | |||||
include_once DEDEINC . '/datalistcp.class.php'; | |||||
if ($diy->public == 2) | |||||
$query = "SELECT * FROM `{$diy->table}` ORDER BY id DESC"; | $query = "SELECT * FROM `{$diy->table}` ORDER BY id DESC"; | ||||
else | else | ||||
$query = "SELECT * FROM `{$diy->table}` WHERE ifcheck=1 ORDER BY id DESC"; | $query = "SELECT * FROM `{$diy->table}` WHERE ifcheck=1 ORDER BY id DESC"; | ||||
@@ -122,40 +101,32 @@ else if($action == 'list') | |||||
$datalist->pageSize = 10; | $datalist->pageSize = 10; | ||||
$datalist->SetParameter('action', 'list'); | $datalist->SetParameter('action', 'list'); | ||||
$datalist->SetParameter('diyid', $diyid); | $datalist->SetParameter('diyid', $diyid); | ||||
$datalist->SetTemplate(DEDEINC."/../templets/plus/{$diy->listTemplate}"); | |||||
$datalist->SetTemplate(DEDEINC . "/../templets/plus/{$diy->listTemplate}"); | |||||
$datalist->SetSource($query); | $datalist->SetSource($query); | ||||
$fieldlist = $diy->getFieldList(); | $fieldlist = $diy->getFieldList(); | ||||
$datalist->Display(); | $datalist->Display(); | ||||
} | |||||
else if($action == 'view') | |||||
{ | |||||
if(empty($diy->public)) | |||||
{ | |||||
showMsg('后台关闭前台浏览' , 'javascript:;'); | |||||
} else if ($action == 'view') { | |||||
if (empty($diy->public)) { | |||||
showMsg('后台关闭前台浏览', 'javascript:;'); | |||||
exit(); | exit(); | ||||
} | } | ||||
if(empty($id)) | |||||
{ | |||||
if (empty($id)) { | |||||
showMsg('非法操作!未指定id', 'javascript:;'); | showMsg('非法操作!未指定id', 'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
if($diy->public == 2) | |||||
{ | |||||
$query = "SELECT * FROM {$diy->table} WHERE id='$id' "; | |||||
} | |||||
else | |||||
{ | |||||
$query = "SELECT * FROM {$diy->table} WHERE id='$id' AND ifcheck=1"; | |||||
if ($diy->public == 2) { | |||||
$query = "SELECT * FROM `{$diy->table}` WHERE id='$id' "; | |||||
} else { | |||||
$query = "SELECT * FROM `{$diy->table}` WHERE id='$id' AND ifcheck=1"; | |||||
} | } | ||||
$row = $dsql->GetOne($query); | $row = $dsql->GetOne($query); | ||||
if(!is_array($row)) | |||||
{ | |||||
if (!is_array($row)) { | |||||
showmsg('你访问的记录不存在或未经审核', '-1'); | showmsg('你访问的记录不存在或未经审核', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$fieldlist = $diy->getFieldList(); | $fieldlist = $diy->getFieldList(); | ||||
include DEDEROOT."/templets/plus/{$diy->viewTemplate}"; | |||||
} | |||||
include DEDEROOT . "/templets/plus/{$diy->viewTemplate}"; | |||||
} |
@@ -2,66 +2,71 @@ | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $diy->name; ?> - powered by dedecms</title> | |||||
<link href="img/nspage.css" rel="stylesheet" type="text/css" /> | |||||
<title><?php echo $diy->name; ?> - Powered by DedeBIZ</title> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="main mceneter"> | <div class="main mceneter"> | ||||
<div class="toplogo"> | |||||
<div class="logo"> | |||||
<a href="/"><img src="<?php echo $cfg_templeturl; ?>/default/images/logo.gif" /></a> | |||||
</div> | |||||
<div class="title"> | |||||
<?php echo $diy->name; ?> | |||||
[<a href='diy.php?action=post&diyid=<?php echo $diy->diyid; ?>'>发布信息</a>] | |||||
</div> | |||||
</div> | |||||
<div class="cmain"> | |||||
<?php include(DEDETEMPLATE."/plus/plus_header.htm") ;?> | |||||
<div class="container"> | |||||
<div class="ctitle"> | <div class="ctitle"> | ||||
<h1><?php echo $diy->name; ?>内容列表</h1> | |||||
<span></span> | |||||
<nav class="navbar navbar-expand-lg"> | |||||
<ul class="navbar-nav mr-auto mt-2"> | |||||
<li class="nav-item"> | |||||
<h3><?php echo $diy->name; ?>内容列表</h3> | |||||
</li> | |||||
</ul> | |||||
<span class="navbar-text"> | |||||
<a href="diy.php?action=post&diyid=<?php echo $diy->diyid;?>" class="btn btn-success">发布信息</a> | |||||
</span> | |||||
</nav> | |||||
</div> | </div> | ||||
<div class="cbox mceneter"> | <div class="cbox mceneter"> | ||||
<div class="maplist"> | <div class="maplist"> | ||||
<br /> | |||||
{dede:datalist} | |||||
<table class='listtable' cellspacing="1"> | |||||
<?php | |||||
if(!empty($fields)) | |||||
{ | |||||
echo '<tbody>'; | |||||
echo '<tr><td bgcolor="#eeeeee" width="20%">id</td>'; | |||||
echo '<td bgcolor="#eeeeee"><div class="left">'.$fields['id'].'</div><div class="right"><a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank">详细...</a> </div></td></tr>'; | |||||
foreach($fieldlist as $field=>$fielddata) | |||||
{ | |||||
if($fields[$field]=='') continue; | |||||
if($fielddata[1]=='img') | |||||
{dede:datalist} | |||||
<table class='table' cellspacing="1"> | |||||
<?php | |||||
if(!empty($fields)) | |||||
{ | { | ||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 图片附件</a>\r\n"; | |||||
echo '<tbody>'; | |||||
echo '<tr><td bgcolor="#eeeeee" width="20%">id</td>'; | |||||
echo '<td bgcolor="#eeeeee"><div class="left">'.$fields['id'].'</div><div class="right"><a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank">详细...</a> </div></td></tr>'; | |||||
foreach($fieldlist as $field=>$fielddata) | |||||
{ | |||||
if($fields[$field]=='') continue; | |||||
if($fielddata[1]=='img') | |||||
{ | |||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 图片附件</a>\r\n"; | |||||
} | |||||
else if($fielddata[1]=='addon') | |||||
{ | |||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 其它附件</a>"; | |||||
} | |||||
else | |||||
{ | |||||
if($fielddata[1]=='htmltext') $fields[$field] = html2text($fields[$field]); | |||||
else $fields[$field] = dede_htmlspecialchars($fields[$field]); | |||||
if( strlen($fields[$field]) > 250 ) | |||||
{ | |||||
$fields[$field] = cn_substr( $fields[$field], 250).'...'; | |||||
} | |||||
} | |||||
echo "<tr><td bgcolor='#ffffff'>{$fielddata[0]}</td><td bgcolor='#ffffff'>{$fields[$field]}</td></tr>\r\n"; | |||||
} | |||||
echo '</tbody>'; | |||||
}else{ | |||||
echo "<tr><td bgcolor='#ffffff'>暂无记录</td></tr>"; | |||||
} | } | ||||
else if($fielddata[1]=='addon') | |||||
{ | |||||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 其它附件</a>"; | |||||
} | |||||
else | |||||
{ | |||||
if($fielddata[1]=='htmltext') $fields[$field] = html2text($fields[$field]); | |||||
else $fields[$field] = dede_htmlspecialchars($fields[$field]); | |||||
if( strlen($fields[$field]) > 250 ) | |||||
{ | |||||
$fields[$field] = cn_substr( $fields[$field], 250).'...'; | |||||
} | |||||
} | |||||
echo "<tr><td bgcolor='#ffffff'>{$fielddata[0]}</td><td bgcolor='#ffffff'>{$fields[$field]}</td></tr>\r\n"; | |||||
} | |||||
echo '</tbody>'; | |||||
}else{ | |||||
echo "<tr><td bgcolor='#ffffff'>暂无记录</td></tr>"; | |||||
} | |||||
?> | |||||
</table> | |||||
{/dede:datalist} | |||||
?> | |||||
</table> | |||||
{/dede:datalist} | |||||
<table class='listtable' cellspacing="2"> | <table class='listtable' cellspacing="2"> | ||||
<tr><td bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td></tr> | <tr><td bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td></tr> | ||||
</table> | </table> | ||||
@@ -69,10 +74,6 @@ if(!empty($fields)) | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="copyright mceneter"> | |||||
Powered by <a href="http://www.dedecms.com" target="_blank">DedeCMS</a> © 2004-2020 <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc. | |||||
</div> | |||||
<?php include(DEDETEMPLATE."/plus/plus_footer.htm") ;?> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,53 +1,49 @@ | |||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<!DOCTYPE html | |||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | |||||
<title><?php echo $diy->name;?> - Powered by DedeCMS</title> | |||||
<link href="img/nspage.css" rel="stylesheet" type="text/css" /> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | |||||
<title><?php echo $diy->name;?> - Powered by DedeBIZ</title> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body> | |||||
<div class="main mceneter"> | |||||
<div class="toplogo"> | |||||
<div class="logo"> | |||||
<a href="/"><img src="<?php echo $cfg_templeturl; ?>/default/images/logo.gif" /></a> | |||||
</div> | |||||
<div class="title"> | |||||
<a href='diy.php?action=list&diyid=<?php echo $diy->diyid; ?>'><?php echo $diy->name; ?></a> > 发布信息 | |||||
</div> | |||||
</div> | |||||
<div class="cmain"> | |||||
<div class="ctitle"> | |||||
<h1><?php echo $diy->name;?>发布</h1> | |||||
<span></span> | |||||
</div> | |||||
<div class="cbox mceneter"> | |||||
<div class="maplist"> | |||||
<br /> | |||||
<form action="<?php echo $cfg_cmspath;?>/plus/diy.php" enctype="multipart/form-data" method="post"> | |||||
<input type="hidden" name="action" value="post" /> | |||||
<input type="hidden" name="diyid" value="<?php echo $diyid;?>" /> | |||||
<input type="hidden" name="do" value="2" /> | |||||
<table style="width:97%;" cellpadding="0" cellspacing="1"> | |||||
<?php | |||||
echo $postform; | |||||
?> | |||||
</table> | |||||
<div align='center' style='height:30px;padding-top:10px;'> | |||||
<input type="submit" name="submit" value="提 交" class='coolbg' /> | |||||
| |||||
<input type="reset" name="reset" value="重 置" class='coolbg' /> | |||||
</div> | |||||
</form> | |||||
<body> | |||||
<div class="main mceneter"> | |||||
<?php include(DEDETEMPLATE."/plus/plus_header.htm") ;?> | |||||
<div class="container"> | |||||
<div class="ctitle"> | |||||
<h3><?php echo $diy->name;?>发布</h3> | |||||
</div> | |||||
<div class="cbox mceneter"> | |||||
<div class="maplist"> | |||||
<form action="<?php echo $cfg_cmspath;?>/plus/diy.php" enctype="multipart/form-data" method="post"> | |||||
<input type="hidden" name="action" value="post" /> | |||||
<input type="hidden" name="diyid" value="<?php echo $diyid;?>" /> | |||||
<input type="hidden" name="do" value="2" /> | |||||
<table style="width:97%;" cellpadding="0" cellspacing="1" class="table"> | |||||
<?php | |||||
echo $postform; | |||||
?> | |||||
</table> | |||||
<div align='center'> | |||||
<button type="submit" name="submit" class='btn btn-success'>提 交</button> | |||||
| |||||
<button type="reset" name="reset" class='btn btn-success'>重 置</button> | |||||
</div> | |||||
</form> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | |||||
<div class="copyright mceneter"> | |||||
Powered by <a href="http://www.dedecms.com" target="_blank">DedeCMS</a> © 2004-2020 <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc. | |||||
</div> | |||||
<?php include(DEDETEMPLATE."/plus/plus_footer.htm") ;?> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -3,27 +3,26 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $diy->name;?> - powered by dedecms</title> | <title><?php echo $diy->name;?> - powered by dedecms</title> | ||||
<link href="./img/nspage.css" rel="stylesheet" type="text/css" /> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="main mceneter"> | <div class="main mceneter"> | ||||
<div class="toplogo"> | |||||
<div class="logo"> | |||||
<a href="/"><img src="<?php echo $cfg_templeturl; ?>/default/images/logo.gif" /></a> </div> | |||||
<div class="title"> | |||||
<a href='diy.php?action=list&diyid=<?php echo $diy->diyid; ?>'><?php echo $diy->name; ?></a> > 详细内容 | |||||
</div> | |||||
</div> | |||||
<div class="cmain"> | |||||
<?php include(DEDETEMPLATE."/plus/plus_header.htm") ;?> | |||||
<div class="container"> | |||||
<div class="ctitle"> | <div class="ctitle"> | ||||
<h1><?php echo $diy->name;?>详细内容</h1> | |||||
<h3><?php echo $diy->name;?>详细内容</h3> | |||||
<span></span> | <span></span> | ||||
</div> | </div> | ||||
<div class="cbox mceneter"> | <div class="cbox mceneter"> | ||||
<div class="maplist"> | <div class="maplist"> | ||||
<br /> | <br /> | ||||
<table class='listtable' cellspacing="1"> | |||||
<table class='table' cellspacing="1"> | |||||
<?php | <?php | ||||
echo '<tbody>'; | echo '<tbody>'; | ||||
echo '<tr><td bgcolor="#eeeeee" width="20%">id</td><td bgcolor="#eeeeee">'.$row['id'].'</td></tr>'; | echo '<tr><td bgcolor="#eeeeee" width="20%">id</td><td bgcolor="#eeeeee">'.$row['id'].'</td></tr>'; | ||||
@@ -56,9 +55,7 @@ echo '</tbody>'; | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="copyright mceneter"> | |||||
Powered by <a href="http://www.dedecms.com" target="_blank">DedeCMS</a> © 2004-2020 <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc. | |||||
</div> | |||||
<?php include(DEDETEMPLATE."/plus/plus_footer.htm") ;?> | |||||
</body> | </body> | ||||
</html> | </html> |