@@ -20,21 +20,21 @@ | |||
<td width="36%" align="center">状态</td> | |||
</tr> | |||
<?php | |||
$dsql->SetQuery("Select * From #@__myadtype"); | |||
$dsql->Execute(); | |||
$k=0; | |||
while($row = $dsql->GetObject()) | |||
{ | |||
$k++; | |||
?> | |||
$dsql->SetQuery("Select * From #@__myadtype"); | |||
$dsql->Execute(); | |||
$k=0; | |||
while($row = $dsql->GetObject()) | |||
{ | |||
$k++; | |||
?> | |||
<tr align="center"> | |||
<td height="26"><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>"/><?php echo $row->id; ?></td> | |||
<td height="26"><input name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%"></td> | |||
<td><input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' class='np'> 保留</td> | |||
</tr> | |||
<?php | |||
} | |||
?> | |||
} | |||
?> | |||
<input type="hidden" name="idend" value="<?php echo $k?>"> | |||
<tr bgcolor="#F8FCF1"> | |||
<td height="26" colspan="5" bgcolor="#f8f8f8">新增一个广告类型:</td> | |||
@@ -33,13 +33,13 @@ | |||
<td> | |||
<select name='cardtype' style='width:120px'> | |||
<?php | |||
$dsql->SetQuery("Select * From #@__moneycard_type"); | |||
$dsql->Execute(); | |||
while($row=$dsql->GetArray()){ | |||
echo " <option value='{$row['tid']}'>{$row['pname']}</option>"; | |||
} | |||
$dsql->Close(); | |||
?> | |||
$dsql->SetQuery("Select * From #@__moneycard_type"); | |||
$dsql->Execute(); | |||
while($row=$dsql->GetArray()){ | |||
echo " <option value='{$row['tid']}'>{$row['pname']}</option>"; | |||
} | |||
$dsql->Close(); | |||
?> | |||
</select> | |||
</td> | |||
<td width="90">生成数量:</td> | |||
@@ -22,13 +22,13 @@ | |||
<td width="17%" align="center">状态</td> | |||
</tr> | |||
<?php | |||
$dsql->SetQuery("Select * From #@__moneycard_type"); | |||
$dsql->Execute(); | |||
$k=0; | |||
while($row = $dsql->GetObject()) | |||
{ | |||
$k++; | |||
?> | |||
$dsql->SetQuery("Select * From #@__moneycard_type"); | |||
$dsql->Execute(); | |||
$k=0; | |||
while($row = $dsql->GetObject()) | |||
{ | |||
$k++; | |||
?> | |||
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>"> | |||
<tr align="center"> | |||
<td height="26"> | |||
@@ -9,106 +9,106 @@ | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script src="../static/web/js/jquery.min.js"></script> | |||
<script src="js/main.js"></script> | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
} | |||
?> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
var pos = GetWinPos(800,600); | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
} | |||
} | |||
?> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
var pos = GetWinPos(800,600); | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} else { | |||
tobj.style.display = "none"; | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
return true; | |||
} | |||
function CheckPathSet() { | |||
var surl = document.getElementById("siteurl"); | |||
var sreid = document.getElementById("reid"); | |||
var mysel = document.getElementById("truepath3"); | |||
if (surl.value != "") { | |||
if (sreid.value == "0" || sreid.value == "") { | |||
mysel.checked = true; | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} else { | |||
tobj.style.display = "none"; | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
} | |||
return true; | |||
} | |||
function CheckPathSet() { | |||
var surl = document.getElementById("siteurl"); | |||
var sreid = document.getElementById("reid"); | |||
var mysel = document.getElementById("truepath3"); | |||
if (surl.value != "") { | |||
if (sreid.value == "0" || sreid.value == "") { | |||
mysel.checked = true; | |||
} | |||
} | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
@@ -10,95 +10,95 @@ | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script src="../static/web/js/jquery.min.js"></script> | |||
<script src="js/main.js"></script> | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr){ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
} | |||
?> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
var pos = GetWinPos(800,600); | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr){ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
} | |||
?> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
var pos = GetWinPos(800,600); | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} else { | |||
tobj.style.display = "none"; | |||
} | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} else { | |||
tobj.style.display = "none"; | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
} | |||
return true; | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
return true; | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
@@ -9,101 +9,101 @@ | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script src="js/context_menu.js"></script> | |||
<script src="js/ieemu.js"></script> | |||
<script> | |||
if (moz) { | |||
extendEventObject(); | |||
extendElementModel(); | |||
emulateAttachEvent(); | |||
} | |||
function viewArc(aid) { | |||
if (aid == 0) aid = getOneItem(); | |||
window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | |||
} | |||
function editArc(aid) { | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=editArchives"; | |||
} | |||
function updateArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr; | |||
} | |||
function checkArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr; | |||
} | |||
function adArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr; | |||
} | |||
function delArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | |||
} | |||
//上下文菜单 | |||
function ShowMenu(evt, obj, aid, atitle) { | |||
var eobj, popupoptions | |||
popupoptions = [ | |||
new ContextItem("浏览文档", function () { viewArc(aid); }), | |||
new ContextItem("编辑文档", function () { editArc(aid); }), | |||
new ContextSeperator(), | |||
new ContextItem("更新HTML", function () { updateArc(aid); }), | |||
new ContextItem("审核文档", function () { checkArc(aid); }), | |||
new ContextItem("推荐文档", function () { adArc(aid); }), | |||
new ContextSeperator(), | |||
new ContextItem("删除文档", function () { delArc(aid); }), | |||
new ContextSeperator(), | |||
new ContextItem("全部选择", function () { selAll(); }), | |||
new ContextItem("取消选择", function () { noSelAll(); }), | |||
new ContextSeperator(), | |||
new ContextItem("关闭菜单", function () { }) | |||
] | |||
ContextMenu.display(evt, popupoptions) | |||
} | |||
//获得选中文件的文件名 | |||
function getCheckboxItem() { | |||
var allSel = ""; | |||
if (document.form2.arcID.value) return document.form2.arcID.value; | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (document.form2.arcID[i].checked) { | |||
if (allSel == "") | |||
allSel = document.form2.arcID[i].value; | |||
else | |||
allSel = allSel + "`" + document.form2.arcID[i].value; | |||
<script> | |||
if (moz) { | |||
extendEventObject(); | |||
extendElementModel(); | |||
emulateAttachEvent(); | |||
} | |||
function viewArc(aid) { | |||
if (aid == 0) aid = getOneItem(); | |||
window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | |||
} | |||
function editArc(aid) { | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=editArchives"; | |||
} | |||
function updateArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr; | |||
} | |||
function checkArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr; | |||
} | |||
function adArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr; | |||
} | |||
function delArc(aid) { | |||
var qstr = getCheckboxItem(); | |||
if (aid == 0) aid = getOneItem(); | |||
location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | |||
} | |||
//上下文菜单 | |||
function ShowMenu(evt, obj, aid, atitle) { | |||
var eobj, popupoptions | |||
popupoptions = [ | |||
new ContextItem("浏览文档", function () { viewArc(aid); }), | |||
new ContextItem("编辑文档", function () { editArc(aid); }), | |||
new ContextSeperator(), | |||
new ContextItem("更新HTML", function () { updateArc(aid); }), | |||
new ContextItem("审核文档", function () { checkArc(aid); }), | |||
new ContextItem("推荐文档", function () { adArc(aid); }), | |||
new ContextSeperator(), | |||
new ContextItem("删除文档", function () { delArc(aid); }), | |||
new ContextSeperator(), | |||
new ContextItem("全部选择", function () { selAll(); }), | |||
new ContextItem("取消选择", function () { noSelAll(); }), | |||
new ContextSeperator(), | |||
new ContextItem("关闭菜单", function () { }) | |||
] | |||
ContextMenu.display(evt, popupoptions) | |||
} | |||
//获得选中文件的文件名 | |||
function getCheckboxItem() { | |||
var allSel = ""; | |||
if (document.form2.arcID.value) return document.form2.arcID.value; | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (document.form2.arcID[i].checked) { | |||
if (allSel == "") | |||
allSel = document.form2.arcID[i].value; | |||
else | |||
allSel = allSel + "`" + document.form2.arcID[i].value; | |||
} | |||
} | |||
return allSel; | |||
} | |||
return allSel; | |||
} | |||
//获得选中其中一个的id | |||
function getOneItem() { | |||
var allSel = ""; | |||
if (document.form2.arcID.value) return document.form2.arcID.value; | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (document.form2.arcID[i].checked) { | |||
allSel = document.form2.arcID[i].value; | |||
break; | |||
//获得选中其中一个的id | |||
function getOneItem() { | |||
var allSel = ""; | |||
if (document.form2.arcID.value) return document.form2.arcID.value; | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (document.form2.arcID[i].checked) { | |||
allSel = document.form2.arcID[i].value; | |||
break; | |||
} | |||
} | |||
return allSel; | |||
} | |||
return allSel; | |||
} | |||
function selAll() { | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (!document.form2.arcID[i].checked) { | |||
document.form2.arcID[i].checked = true; | |||
function selAll() { | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (!document.form2.arcID[i].checked) { | |||
document.form2.arcID[i].checked = true; | |||
} | |||
} | |||
} | |||
} | |||
function noSelAll() { | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (document.form2.arcID[i].checked) { | |||
document.form2.arcID[i].checked = false; | |||
function noSelAll() { | |||
for (i = 0; i < document.form2.arcID.length; i++) { | |||
if (document.form2.arcID[i].checked) { | |||
document.form2.arcID[i].checked = false; | |||
} | |||
} | |||
} | |||
} | |||
</script> | |||
</script> | |||
</head> | |||
<body onLoad="ContextMenu.intializeContextMenu()"> | |||
<table width="98%" cellspacing="0" cellpadding="0" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -7,41 +7,36 @@ | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
</head> | |||
<body> | |||
<table width="98%" cellpadding="3" cellspacing="1" align="center"> | |||
<table width="98%" cellpadding="3" cellspacing="1" align="center"> | |||
<tr> | |||
<td height="26" colspan="2" background="../static/web/img/tbg.gif">文档信息统计</td> | |||
</tr> | |||
<tr> | |||
<td height="250" colspan="2" align="center"> | |||
<table width="98%" cellspacing="0" cellpadding="0"> | |||
<tr><td height="10"></td></tr> | |||
</table> | |||
<td colspan="2" align="center"> | |||
<table width="98%" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td>综合信息统计:</td> | |||
<td><table width="300" cellpadding="1" cellspacing="1" bgcolor="#996666"> | |||
<td> | |||
<table width="300" cellpadding="1" cellspacing="1"> | |||
<tr> | |||
<td width="140" bgcolor="#F3ECDA"> 文档总数:</td> | |||
<td width="140" bgcolor="#F3ECDA">文档总数:</td> | |||
<td width="260">[<?php echo $row1['dd']?>]</td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#F3ECDA"> 评论总数:</td> | |||
<td bgcolor="#F3ECDA">评论总数:</td> | |||
<td>[<?php echo $row2['dd']?>]</td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#F3ECDA"> 会员总数:</td> | |||
<td bgcolor="#F3ECDA">会员总数:</td> | |||
<td>[<?php echo $row3['dd']?>]</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="13%" height="80">频道信息统计:</td> | |||
<td width="87%"><table width="98%" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td height="10"></td> | |||
</tr> | |||
</table> | |||
<table width="300" cellpadding="1" cellspacing="1" bgcolor="#996666"> | |||
<td width="16%" height="80">频道信息统计:</td> | |||
<td width="84%"> | |||
<table width="300" cellpadding="1" cellspacing="1"> | |||
<tr align="center" bgcolor="#E8E6D7"> | |||
<td width="140" bgcolor="#E8E6D7">频道名称</td> | |||
<td>文档总数</td> | |||
@@ -55,23 +50,18 @@ | |||
?> | |||
<tr align="center"> | |||
<td><?php echo $row->typename?></td> | |||
<td> | |||
[<?php echo (isset($arcs[$row->id]) ? $arcs[$row->id] : 0 ); ?>] | |||
</td> | |||
<td>[<?php echo (isset($arcs[$row->id]) ? $arcs[$row->id] : 0 ); ?>]</td> | |||
</tr> | |||
<?php } ?> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td height="10"></td> | |||
</tr> | |||
</table></td> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="2" bgcolor="#DFE9C0"></td> | |||
<td height="26" colspan="2" bgcolor="#DFE9C0"></td> | |||
</tr> | |||
</table> | |||
</table> | |||
</body> | |||
</html> |
@@ -17,34 +17,34 @@ | |||
</tr> | |||
<tr> | |||
<td colspan="2" align="center"> | |||
<form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2"> | |||
<input type="hidden" name="dopost" value="edit"> | |||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>"> | |||
<table width="100%" cellpadding="3" cellspacing="1"> | |||
<?php | |||
$formfields = ''; | |||
foreach($fieldlist as $field=>$fielddata) | |||
{ | |||
$allowhtml = array('htmltext'); | |||
if($row[$field]=='') continue; | |||
if($fielddata[1]=='img') | |||
{ | |||
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>"; | |||
} | |||
else if($fielddata[1]=='addon') | |||
{ | |||
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>"; | |||
} else { | |||
if(!in_array($fielddata[1],$allowhtml)){ | |||
$row[$field] = dede_htmlspecialchars($row[$field]); | |||
$row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'>"; | |||
} | |||
} | |||
echo '<tr><td width="260" height="26">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>'; | |||
$formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1]; | |||
} | |||
echo "<input type='hidden' name='dede_fields' value='".$formfields."'>"; | |||
?> | |||
<form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2"> | |||
<input type="hidden" name="dopost" value="edit"> | |||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>"> | |||
<table width="100%" cellpadding="3" cellspacing="1"> | |||
<?php | |||
$formfields = ''; | |||
foreach($fieldlist as $field=>$fielddata) | |||
{ | |||
$allowhtml = array('htmltext'); | |||
if($row[$field]=='') continue; | |||
if($fielddata[1]=='img') | |||
{ | |||
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>"; | |||
} | |||
else if($fielddata[1]=='addon') | |||
{ | |||
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>"; | |||
} else { | |||
if(!in_array($fielddata[1],$allowhtml)){ | |||
$row[$field] = dede_htmlspecialchars($row[$field]); | |||
$row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'>"; | |||
} | |||
} | |||
echo '<tr><td width="260" height="26">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>'; | |||
$formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1]; | |||
} | |||
echo "<input type='hidden' name='dede_fields' value='".$formfields."'>"; | |||
?> | |||
<tr> | |||
<td colspan="2" align="center" class="py-3"> | |||
<button type="submit" name="Submit1" class='btn btn-success btn-sm'>保存</button> | |||
@@ -52,7 +52,7 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -10,60 +10,60 @@ | |||
<script language="javascript" src="../static/web/js/jquery.min.js"></script> | |||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language='javascript' src="js/main.js"></script> | |||
<script language="javascript"> | |||
var notAllow = " <?php echo $f; ?> "; | |||
function GetFields() | |||
{ | |||
var theform = document.form1; | |||
var fieldname = theform.fieldname.value; | |||
var itemname = theform.itemname.value; | |||
var dtype = 'text'; | |||
var enums = document.getElementsByName('dtype'); | |||
for(i=0;i<enums.length;i++) | |||
{ | |||
if(enums[i].checked) dtype = enums[i].value; | |||
} | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
var maxlength = theform.maxlength.value; | |||
var vinnertext = theform.vinnertext.value; | |||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||
var sisnull = (isnull==0 ? "false" : "true"); | |||
if(itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if(fieldname=="") | |||
{ | |||
ShowMsg("字段名称不能为空"); | |||
theform.fieldname.focus(); | |||
return false; | |||
} | |||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
{ | |||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||
return false; | |||
} | |||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
return true; | |||
} | |||
</script> | |||
<style> | |||
<script language="javascript"> | |||
var notAllow = " <?php echo $f; ?> "; | |||
function GetFields() | |||
{ | |||
var theform = document.form1; | |||
var fieldname = theform.fieldname.value; | |||
var itemname = theform.itemname.value; | |||
var dtype = 'text'; | |||
var enums = document.getElementsByName('dtype'); | |||
for(i=0;i<enums.length;i++) | |||
{ | |||
if(enums[i].checked) dtype = enums[i].value; | |||
} | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
var maxlength = theform.maxlength.value; | |||
var vinnertext = theform.vinnertext.value; | |||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||
var sisnull = (isnull==0 ? "false" : "true"); | |||
if(itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if(fieldname=="") | |||
{ | |||
ShowMsg("字段名称不能为空"); | |||
theform.fieldname.focus(); | |||
return false; | |||
} | |||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
{ | |||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||
return false; | |||
} | |||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
return true; | |||
} | |||
</script> | |||
<style> | |||
.style1 {color: #FF3300} | |||
.style2 {color: #424b51} | |||
.nw { float:left; width:150px; } | |||
.cls { clear:both; } | |||
</style> | |||
</style> | |||
</head> | |||
<body> | |||
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -10,46 +10,46 @@ | |||
<script language="javascript" src="../static/web/js/jquery.min.js"></script> | |||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language='javascript' src="js/main.js"></script> | |||
<script language="javascript"> | |||
function GetFields() | |||
{ | |||
var theform = document.form1; | |||
var itemname = theform.itemname.value; | |||
var fieldname = theform.fname.value; | |||
var dtype = theform.dtype.value; | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
var maxlength = theform.maxlength.value; | |||
var vinnertext = theform.vinnertext.value; | |||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||
var sisnull = (isnull==0 ? "false" : "true"); | |||
if(itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | |||
revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
return true; | |||
} | |||
</script> | |||
<style> | |||
<script language="javascript"> | |||
function GetFields() | |||
{ | |||
var theform = document.form1; | |||
var itemname = theform.itemname.value; | |||
var fieldname = theform.fname.value; | |||
var dtype = theform.dtype.value; | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
var maxlength = theform.maxlength.value; | |||
var vinnertext = theform.vinnertext.value; | |||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||
var sisnull = (isnull==0 ? "false" : "true"); | |||
if(itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | |||
revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
return true; | |||
} | |||
</script> | |||
<style> | |||
td{ padding:6px; padding-left:6px; } | |||
.style1 {color: #FF3300} | |||
.style2 {color: #424b51} | |||
.nw { float:left; width:150px; } | |||
.cls { clear:both; } | |||
</style> | |||
</style> | |||
</head> | |||
<body> | |||
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -7,12 +7,12 @@ | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script language="javascript" src="../static/web/js/webajax.js"></script> | |||
<script language="javascript" src="js/main.js"></script> | |||
<script language="javascript"> | |||
function SelectTemplets(fname){ | |||
var pos = GetWinPos(800,600); | |||
window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left="+pos.left+", top="+pos.top); | |||
} | |||
</script> | |||
<script language="javascript"> | |||
function SelectTemplets(fname){ | |||
var pos = GetWinPos(800,600); | |||
window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left="+pos.left+", top="+pos.top); | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<form name="form1" action="diy_list.php" method="post" > | |||
@@ -3,30 +3,30 @@ | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>查看会员</title> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script language="javascript" src="../static/web/js/jquery.min.js"></script> | |||
<script language="javascript" src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language="javascript" src="js/main.js"></script> | |||
<script> | |||
function checkSubmit() | |||
{ | |||
if(document.form2.email.value=="") | |||
<title>查看会员</title> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script language="javascript" src="../static/web/js/jquery.min.js"></script> | |||
<script language="javascript" src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language="javascript" src="js/main.js"></script> | |||
<script> | |||
function checkSubmit() | |||
{ | |||
document.form2.email.focus(); | |||
ShowMsg("Email不能为空"); | |||
return false; | |||
if(document.form2.email.value=="") | |||
{ | |||
document.form2.email.focus(); | |||
ShowMsg("Email不能为空"); | |||
return false; | |||
} | |||
if(document.form2.uname.value=="") | |||
{ | |||
document.form2.uname.focus(); | |||
ShowMsg("用户昵称不能为空"); | |||
return false; | |||
} | |||
} | |||
if(document.form2.uname.value=="") | |||
{ | |||
document.form2.uname.focus(); | |||
ShowMsg("用户昵称不能为空"); | |||
return false; | |||
} | |||
} | |||
</script> | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -8,30 +8,30 @@ | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<script language="javascript" src="../static/web/js/webajax.js"></script> | |||
<script language="javascript"> | |||
function ShowHideField(cbox,vid,nid) | |||
{ | |||
var cboxobj = document.getElementById(cbox); | |||
if(cboxobj.checked) | |||
{ | |||
document.getElementById(nid).style.display = 'block'; | |||
document.getElementById(vid).style.display = 'none'; | |||
} else { | |||
document.getElementById(nid).style.display = 'none'; | |||
document.getElementById(vid).style.display = 'block'; | |||
} | |||
} | |||
function ShowHideMb(rbox1,nid) | |||
{ | |||
var rboxobj = document.getElementById(rbox1); | |||
if(rboxobj.checked) | |||
{ | |||
document.getElementById(nid).style.display = 'none'; | |||
} else { | |||
document.getElementById(nid).style.display = 'block'; | |||
} | |||
} | |||
</script> | |||
<script language="javascript"> | |||
function ShowHideField(cbox,vid,nid) | |||
{ | |||
var cboxobj = document.getElementById(cbox); | |||
if(cboxobj.checked) | |||
{ | |||
document.getElementById(nid).style.display = 'block'; | |||
document.getElementById(vid).style.display = 'none'; | |||
} else { | |||
document.getElementById(nid).style.display = 'none'; | |||
document.getElementById(vid).style.display = 'block'; | |||
} | |||
} | |||
function ShowHideMb(rbox1,nid) | |||
{ | |||
var rboxobj = document.getElementById(rbox1); | |||
if(rboxobj.checked) | |||
{ | |||
document.getElementById(nid).style.display = 'none'; | |||
} else { | |||
document.getElementById(nid).style.display = 'block'; | |||
} | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -10,78 +10,78 @@ | |||
<script language="javascript" src="../static/web/js/jquery.min.js"></script> | |||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language="javascript" src="js/main.js"></script> | |||
<script language="javascript"> | |||
var notAllow = " <?php echo $f; ?> "; | |||
function GetFields() | |||
{ | |||
var theform = document.form1; | |||
var fieldname = theform.fieldname.value; | |||
var itemname = theform.itemname.value; | |||
var dtype = 'text'; | |||
var enums = document.getElementsByName('dtype'); | |||
for(i=0;i<enums.length;i++) | |||
{ | |||
if(enums[i].checked) dtype = enums[i].value; | |||
} | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
var maxlength = theform.maxlength.value; | |||
var vinnertext = theform.vinnertext.value; | |||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||
var sisnull = (isnull==0 ? "false" : "true"); | |||
var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||
var islist = (theform.islist.checked ? 1 : 0); | |||
var notsend = (theform.notsend.checked ? 1 : 0); | |||
var automake = theform.relation_automake.checked ? 1 : 0; | |||
if(itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if(fieldname=="") | |||
{ | |||
ShowMsg("字段名称不能为空"); | |||
theform.fieldname.focus(); | |||
return false; | |||
} | |||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
{ | |||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||
return false; | |||
} | |||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
relstr = ""; | |||
if (dtype==="relation") { | |||
relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||
} | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\""+autofield+"\" notsend=\""+notsend+"\" type=\""+dtype+"\""; | |||
revalue += relstr + " isnull=\""+sisnull+"\" islist=\""+islist+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
return true; | |||
} | |||
$(document).ready(function () { | |||
$("#dataType input").click(function(ele){ | |||
if ($(ele.currentTarget).val() === "relation") { | |||
$("#_relation").show(); | |||
} else { | |||
$("#_relation").hide(); | |||
<script language="javascript"> | |||
var notAllow = " <?php echo $f; ?> "; | |||
function GetFields() | |||
{ | |||
var theform = document.form1; | |||
var fieldname = theform.fieldname.value; | |||
var itemname = theform.itemname.value; | |||
var dtype = 'text'; | |||
var enums = document.getElementsByName('dtype'); | |||
for(i=0;i<enums.length;i++) | |||
{ | |||
if(enums[i].checked) dtype = enums[i].value; | |||
} | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
var maxlength = theform.maxlength.value; | |||
var vinnertext = theform.vinnertext.value; | |||
var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||
var sisnull = (isnull==0 ? "false" : "true"); | |||
var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||
var islist = (theform.islist.checked ? 1 : 0); | |||
var notsend = (theform.notsend.checked ? 1 : 0); | |||
var automake = theform.relation_automake.checked ? 1 : 0; | |||
if(itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if(fieldname=="") | |||
{ | |||
ShowMsg("字段名称不能为空"); | |||
theform.fieldname.focus(); | |||
return false; | |||
} | |||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
{ | |||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||
return false; | |||
} | |||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
relstr = ""; | |||
if (dtype==="relation") { | |||
relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||
} | |||
}) | |||
}); | |||
</script> | |||
<style> | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\""+autofield+"\" notsend=\""+notsend+"\" type=\""+dtype+"\""; | |||
revalue += relstr + " isnull=\""+sisnull+"\" islist=\""+islist+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
return true; | |||
} | |||
$(document).ready(function () { | |||
$("#dataType input").click(function(ele){ | |||
if ($(ele.currentTarget).val() === "relation") { | |||
$("#_relation").show(); | |||
} else { | |||
$("#_relation").hide(); | |||
} | |||
}) | |||
}); | |||
</script> | |||
<style> | |||
.style1 {color: #FF3300} | |||
.style2 {color: #424b51} | |||
.nw { float:left; width:150px; } | |||
.cls { clear:both; } | |||
</style> | |||
</style> | |||
</head> | |||
<body> | |||
<form name="form1" action="mychannel_field_add.php" method="post" onSubmit="return GetFields();"> | |||
@@ -21,7 +21,6 @@ | |||
return false; | |||
} | |||
} | |||
$(document).ready(function () { | |||
$('.datepicker').daterangepicker({ | |||
"singleDatePicker": true, | |||
@@ -50,7 +49,6 @@ | |||
}, function (start) { | |||
$(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | |||
}); | |||
}) | |||
</script> | |||
</head> | |||
@@ -9,7 +9,7 @@ | |||
<body> | |||
<table width="99%" cellspacing="0" cellpadding="0"> | |||
<form action="tag_test_action.php" method="post" name="f1" target="_blank"> | |||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>"> | |||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>"> | |||
<tr> | |||
<td align="center"> | |||
<textarea name="partcode" cols="60" rows="6" id="partcode" style="width:90%;height:120"><?php echo $fulltag?></textarea> | |||
@@ -72,7 +72,7 @@ | |||
{/dede:datalist} | |||
<tr> | |||
<td height="26" colspan="2" align="right" bgcolor="#F0F0F0"> | |||
<div style="float:left"><button type="button" name="ss12" style="width:90px" onClick="window.close();" class='btn btn-success btn-sm'>关闭窗口</button></div> | |||
<div style="float:left"><button type="button" name="ss12" onClick="window.close();" class='btn btn-success btn-sm'>关闭窗口</button></div> | |||
<div style="float:right"> | |||
<span>订单总计:</span> <span class="text-danger">{dede:field.priceCount/}</span>元,{dede:pagelist listsize='6'/} | |||
<div> | |||
@@ -11,7 +11,6 @@ | |||
<td width="118" height="26" align="right" bgcolor="#f8f8f8">订单号:</td> | |||
<td width="292" height="26" align="left"> <?php echo $rows['oid']; ?></td> | |||
</tr> | |||
<tr> | |||
<td width="118" height="26" align="right" bgcolor="#f8f8f8">配送:</td> | |||
<td width="292" height="26" align="left"> 方式:<?php echo $rows['dname']; ?> 费用:<?php echo $rows['dprice']; ?>元</td> | |||
@@ -8,17 +8,11 @@ | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<style> | |||
li{float:left;padding-right:10px;line-height:26px} | |||
.abt{width:90%;border:1px #ffffff solid} | |||
#edsta{position:absolute;top:70px;left:110px;width:280px;height:200px;background:#f8f8f8;border:1px solid #dedede;display:none;padding:6px} | |||
#edsta div{margin:6px} | |||
</style> | |||
<SCRIPT LANGUAGE="JavaScript" src="../static/web/js/webajax.js"></SCRIPT> | |||
<script language="JavaScript" src="../static/web/js/webajax.js"></script> | |||
<script language="javascript" src="../static/web/js/jquery.min.js"></script> | |||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language='javascript' src='js/main.js'></script> | |||
<SCRIPT LANGUAGE="JavaScript"> | |||
<script language="javascript" src='js/main.js'></script> | |||
<script language="JavaScript"> | |||
var loadhtml = "<center><img src='../static/web/img/loadinglit.gif' style='padding:30px' /></center>"; | |||
function updateItem(aid) { | |||
var upenumf = document.getElementById('upenumf'); | |||
@@ -138,7 +132,13 @@ li{float:left;padding-right:10px;line-height:26px} | |||
location.href = 'stepselect_main.php?egroup=<?php echo $egroup; ?>&topvalue=' + nv; | |||
} | |||
} | |||
</SCRIPT> | |||
</script> | |||
<style> | |||
li{float:left;padding-right:10px;line-height:26px} | |||
.abt{width:90%;border:1px #ffffff solid} | |||
#edsta{position:absolute;top:70px;left:110px;width:280px;height:200px;background:#f8f8f8;border:1px solid #dedede;display:none;padding:6px} | |||
#edsta div{margin:6px} | |||
</style> | |||
</head> | |||
<body> | |||
<div id="edsta"> | |||
@@ -5,30 +5,30 @@ $sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); | |||
if($arr['issystem']==0) $sbjs = ''; | |||
?> | |||
<!--编辑表单--> | |||
<div style='float:left'>修改类别</div> | |||
<div style='float:right'><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style='clear:both'> | |||
<form action='stepselect_main.php' method='post'<?php echo $sbjs; ?>> | |||
<div style="float:left">修改类别</div> | |||
<div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style="clear:both"> | |||
<form action="stepselect_main.php" method="post" <?php echo $sbjs; ?>> | |||
<input type="hidden" name="action" value="edit_save"> | |||
<input type="hidden" name="id" value="<?php echo $arr['id']; ?>"> | |||
<div>类 别 名:<input type="text" name="itemname" class="iptxt" style='width:160px' value="<?php echo $arr['itemname']; ?>"></div> | |||
<div>缓存组名:<input type="text" name="egroup" class="iptxt" style='width:160px' value="<?php echo $arr['egroup']; ?>"></div> | |||
<div>类 别 名:<input type="text" name="itemname" class="iptxt" value="<?php echo $arr['itemname']; ?>" style="width:160px"></div> | |||
<div>缓存组名:<input type="text" name="egroup" class="iptxt" value="<?php echo $arr['egroup']; ?>" style="width:160px"></div> | |||
<div>缓存组名必须为英文或数字组合</div> | |||
<div><button type="submit" class="btn btn-success btn-sm">确定增加</button></div> | |||
<div><button type="submit" class="btn btn-success btn-sm">保存</button></div> | |||
</form> | |||
<?php | |||
} else if($action=='addnew') { | |||
?> | |||
<!--新增类别表单--> | |||
<div style='float:left'>新增类别</div> | |||
<div style='float:right'><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style='clear:both'> | |||
<form action='stepselect_main.php' method='post'> | |||
<div style="float:left">新增类别</div> | |||
<div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style="clear:both"> | |||
<form action="stepselect_main.php" method="post"> | |||
<input type="hidden" name="action" value="addnew_save"> | |||
<div>类 别 名:<input type="text" name="itemname" class="iptxt" style='width:160px'></div> | |||
<div>缓存组名:<input type="text" name="egroup" class="iptxt" style='width:160px'></div> | |||
<div>类 别 名:<input type="text" name="itemname" class="iptxt" style="width:160px"></div> | |||
<div>缓存组名:<input type="text" name="egroup" class="iptxt" style="width:160px"></div> | |||
<div>缓存组名必须为英文或数字组合</div> | |||
<div><button type="submit" class="btn btn-success btn-sm">确定增加</button></div> | |||
<div><button type="submit" class="btn btn-success btn-sm">保存</button></div> | |||
</form> | |||
<?php | |||
} else if($action=='addenum') { | |||
@@ -41,23 +41,23 @@ if($arr['issign']==0) | |||
} | |||
?> | |||
<!--新增枚举表单--> | |||
<div style='float:left'>添加枚举</div> | |||
<div style='float:right'><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style='clear:both'> | |||
<form action='stepselect_main.php' method='post'> | |||
<div style="float:left">添加枚举</div> | |||
<div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style="clear:both"> | |||
<form action="stepselect_main.php" method="post"> | |||
<input type="hidden" name="action" value="addenum_save"> | |||
<input type="hidden" name="issign" value="<?php echo $arr['issign']; ?>"> | |||
<input type="hidden" name="egroup" value="<?php echo $arr['egroup']; ?>"> | |||
<div> | |||
隶属枚举:<select name='topvalue' style='width:160px'> | |||
<option value='0'>增加一级枚举</option> | |||
隶属枚举:<select name="topvalue" style="width:160px"> | |||
<option value="0">保存一级枚举</option> | |||
<?php echo $options; ?> | |||
</select> | |||
</div> | |||
<div>枚举名:<input type="text" name="ename" class="iptxt" style='width:160px'></div> | |||
<div>排序值:<input type="text" name="disorder" class="iptxt" style='width:160px'></div> | |||
<div>枚举名:<input type="text" name="ename" class="iptxt" style="width:160px"></div> | |||
<div>排序值:<input type="text" name="disorder" class="iptxt" style="width:160px"></div> | |||
<div>如果不指定,默认以枚举添加先后来排序</div> | |||
<div><input type="submit" value="确定增加" class="np coolbg"/></div> | |||
<div><input type="submit" value="保存" class="np coolbg"/></div> | |||
</form> | |||
<?php | |||
} else if($action=='view') { | |||
@@ -70,25 +70,24 @@ if($arr['issign']==0) | |||
{ | |||
$options .= "<option value='{$row1['evalue']}'>{$row1['ename']}</option>"; | |||
} else { | |||
$options .= "<option value='{$row1['evalue']}'> └─{$row1['ename']}</option>"; | |||
$options .= "<option value='{$row1['evalue']}'>└─{$row1['ename']}</option>"; | |||
} | |||
} | |||
?> | |||
<!--预览联动表单--> | |||
<div style='float:left'>预览联动表单</div> | |||
<div style='float:right'><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style='clear:both'> | |||
<div style="float:left">预览联动表单</div> | |||
<div style="float:right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></div> | |||
<br style="clear:both"> | |||
<div> | |||
类别关系: | |||
<select name='topvalue' style='width:160px'> | |||
<option value='0'>请选择</option> | |||
<select name="topvalue" style="width:160px"> | |||
<option value="0">请选择</option> | |||
<?php echo $options; ?> | |||
</select> | |||
<br> | |||
<br> | |||
这里仅显示数据关系,实际应用中,二级联动生成的表单是支持级连的,并非全部列出 | |||
</div> | |||
<br style='clear:both'> | |||
<br style="clear:both"> | |||
<?php | |||
} | |||
?> |
@@ -1,183 +0,0 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>支付接口配置</title> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script language='javascript'> | |||
var _key = 0; | |||
var payment_regurl = new Array( | |||
<?php | |||
$mch_temp = array(); | |||
foreach($cfg_pay_info['type'] as $k => $val){ | |||
$mch_temp[] = '"'.addslashes($cfg_pay_info['reg'][$k]).'"'; | |||
} | |||
echo implode(",\n",$mch_temp); | |||
?> | |||
); | |||
var payment_image = new Array( | |||
<?php | |||
$mch_temp = array(); | |||
foreach($cfg_pay_info['type'] as $k => $val){ | |||
$mch_temp[] = '"../user/templets/images/pay/'.addslashes($cfg_pay_info['logo'][$k]).'"'; | |||
} | |||
echo implode(",\n",$mch_temp); | |||
?> | |||
); | |||
var payment_des = new Array( | |||
<?php | |||
$mch_temp = array(); | |||
foreach($cfg_pay_info['type'] as $k => $val){ | |||
$mch_temp[] = '"'.addslashes($cfg_pay_info['des'][$k]).'"'; | |||
} | |||
echo implode(",\n",$mch_temp); | |||
?> | |||
); | |||
function $Obj(objname){ | |||
return document.getElementById(objname); | |||
} | |||
function ShowReg(_e){ | |||
if(_e > 0) savePayment(); | |||
$Obj("payreg").href = payment_regurl[_e]; | |||
$Obj("regimage").src = payment_image[_e]; | |||
$Obj("paydes").innerHTML = payment_des[_e]; | |||
$Obj("SalesId").value = $Obj("payment_userid_"+_e).value; | |||
$Obj("SalesEmail").value = $Obj("payment_email_"+_e).value; | |||
$Obj("SalesKey").value = $Obj("payment_key_"+_e).value; | |||
$Obj("SalesExp").value = $Obj("payment_exp_"+_e).value; | |||
_key = _e; | |||
} | |||
function setPayment(_name,_v){ | |||
$Obj("payment_"+_name+"_"+_key).value = _v; | |||
} | |||
function ShowHide(objname){ | |||
var obj = $Obj(objname); | |||
if(obj.style.display == "block" || obj.style.display == ""){ obj.style.display = "none"; } | |||
else{ obj.style.display = "block"; } | |||
} | |||
function savePayment(){ | |||
$Obj("payment_userid_"+_key).value = $Obj("SalesId").value; | |||
$Obj("payment_email_"+_key).value = $Obj("SalesEmail").value; | |||
$Obj("payment_key_"+_key).value = $Obj("SalesKey").value; | |||
$Obj("payment_exp_"+_key).value = $Obj("SalesExp").value; | |||
} | |||
</script> | |||
</head> | |||
<style> | |||
.npvar { width:90% } | |||
</style> | |||
<body> | |||
<center> | |||
<form action="sys_info_pay.php" method="post" name="form1" onSubmit="savePayment()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<?php | |||
$payment_arr = array('userid','key','exp','email'); | |||
foreach($payment_arr as $value){ | |||
foreach($cfg_pay_info['type'] as $k => $val){ | |||
if(!isset(${'payment_'.$value}[$k])) $payment_temp = ''; | |||
else $payment_temp = ${'payment_'.$value}[$k]; | |||
echo '<input type="hidden" id="payment_'.$value.'_'.$k.'" name="payment_'.$value.'['.$k.']" value="'.$payment_temp.'">'."\n"; | |||
} | |||
} | |||
?> | |||
<table width="98%" cellpadding="0" cellspacing="0" align="center" style="margin-bottom:10px"> | |||
<tr> | |||
<td> | |||
<table width="100%" cellpadding="1" cellspacing="1" bgcolor="#cbd8ac" class="sysinfo"> | |||
<tr height="26" align="center"> | |||
<td height="26" colspan="2" align="left" background="../static/web/img/tbg.gif">支付接口配置参数 | |||
</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td height="26" colspan="2" align="left"> | |||
<?php echo $message; ?></td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
接口类型:</td> | |||
<td align="left"> | |||
<div style="padding:6px; line-height:24px;"> | |||
<?php foreach($cfg_pay_info['name'] as $k => $val) { ?> | |||
<li style="float:left; width:160px;"> | |||
<input name="payment_select[<?php echo $k; ?>]" type="checkbox" value="<?php echo $cfg_pay_info['type'][$k]; ?>" Onclick="if(this.checked == true) ShowReg(<?php echo $k; ?>);" <?php if(in_array($cfg_pay_info['type'][$k],$payment_select)) echo 'checked'; ?>> <span onClick="ShowReg(<?php echo $k; ?>);" style="cursor:pointer"><?php echo $val; ?></span> | |||
</li> | |||
<?php } ?> | |||
</div> | |||
</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
商户号:</td> | |||
<td align="left"> | |||
<input name="SalesId" type="text" id="SalesId" class='pubinputs' value="" onKeyUp="setPayment('userid',this.value)"/> | |||
此处填写您的支付帐号、客户号或客户id等,此帐号在支付服务提供商处取得</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
邮箱:</td> | |||
<td align="left"> <input name="SalesEmail" type="text" id="SalesEmail" class='pubinputs' value="" onMouseOver="setPayment('email',this.value)"/> | |||
使用支付宝接口时,需填写支付宝账号邮箱</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
私钥:</td> | |||
<td align="left"> | |||
<input name="SalesKey" type="text" id="SalesKey" class='pubinputs' style="width:450px;" value="" onMouseOver="setPayment('key',this.value)"/> | |||
<br> | |||
签约商家请填写“交易安全校验码(key)”;未签约商家不用填写此项.(该项只支持数字和英文字母)</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
支持交易货币:</td> | |||
<td align="left"> | |||
<input name="SalesCurpay" type="checkbox" id="SalesCurpay" value="CNY" checked="checked" class="np"> | |||
人民币 *现只支持人民币,根据支付接口与银行卡决定,默认为人民币.</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
支付手续费:</td> | |||
<td align="left"> | |||
<input name="SalesExp" type="text" class='pubinputs' style="width:80px" value="" onMouseOver="setPayment('exp',this.value)"/> | |||
以百分比计算,手续费将计算在产品价格内.如果3% 则填0.03</td> | |||
</tr> | |||
<tr height="26" align="center"> | |||
<td width="13%" height="26" align="right"> | |||
支付接口申请地址:</td> | |||
<td align="left"> | |||
<a id="payreg" href="http://union.tenpay.com/mch/mch_register.shtml?posid=22&actid=84&opid=50&whoid=31&sp_suggestuser=1202347401" target="_bank" style="margin-left:6px;">点击申请</a> | |||
<br> | |||
<img src="../../user/images/pay/tenpay.jpg" id="regimage"> | |||
<p> | |||
<span id="paydes">财付通是腾讯公司为促进中国电子商务的发展需要,满足互联网用户价值需求,针对网上交易安全而精心推出的一系列服务</span> | |||
</p> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<script type="text/javascript"> | |||
ShowReg(0); | |||
</script> | |||
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cbd8ac;"> | |||
<tr> | |||
<td height="26" colspan="3" align="left"> 如果该配置无效要手动修改,可打开/data/sys_pay.cache.php文件进行手工配置</td> | |||
</tr> | |||
<tr> | |||
<td height="50" colspan="3" align="center"> <table width="200" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td align="center" valign="middle"><input type="reset" name="button" value="重置" class='np coolbg'> </td> | |||
<td align="center" valign="middle"><input name="imageField" type="submit" class='np coolbg' value="提交"/></td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
</table> | |||
</form> | |||
</center> | |||
</body> | |||
</html> |
@@ -40,18 +40,18 @@ | |||
<td>{dede:field.rank /}</td> | |||
<td> | |||
<?php | |||
if($fields['enabled'] == 0) { | |||
?> | |||
if($fields['enabled'] == 0) { | |||
?> | |||
<a class='btn btn-success btn-sm' href='sys_payment.php?dopost=install&pid={dede:field.id /}'>安装</a> | |||
<?php | |||
} | |||
if($fields['enabled'] == 1) { | |||
?> | |||
} | |||
if($fields['enabled'] == 1) { | |||
?> | |||
<a class='btn btn-success btn-sm' href='sys_payment.php?dopost=install&pid={dede:field.id /}&pm=edit'>修改</a> | |||
<a class='btn btn-success btn-sm' href='sys_payment.php?dopost=uninstall&pid={dede:field.id /}'>删除</a> | |||
<?php | |||
} | |||
?> | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
{/dede:datalist} | |||
@@ -17,30 +17,30 @@ | |||
var info = $Obj('info').value; | |||
$Obj('loaddiv').style.display = 'block'; | |||
fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp=>{ | |||
if (resp.ok) { | |||
return resp.text() | |||
} | |||
throw new Error('系统错误,无法获取数据'); | |||
}).then((d)=>{ | |||
$DE('messagetd').innerHTML = d; | |||
$Obj('loaddiv').style.display = 'none'; | |||
}).catch((error) => { | |||
console.log(error); | |||
}); | |||
if (resp.ok) { | |||
return resp.text() | |||
} | |||
throw new Error('系统错误,无法获取数据'); | |||
}).then((d)=>{ | |||
$DE('messagetd').innerHTML = d; | |||
$Obj('loaddiv').style.display = 'none'; | |||
}).catch((error) => { | |||
console.log(error); | |||
}); | |||
} | |||
function LoadCtClear() { | |||
$Obj('loaddiv').style.display = 'block'; | |||
fetch('sys_safetest.php?action=clear').then(resp=>{ | |||
if (resp.ok) { | |||
return resp.text() | |||
} | |||
throw new Error('系统错误,无法获取数据'); | |||
}).then((d)=>{ | |||
$DE('messagetd').innerHTML = d; | |||
$Obj('loaddiv').style.display = 'none'; | |||
}).catch((error) => { | |||
$DE('messagetd').innerHTML = errMsg; | |||
}); | |||
if (resp.ok) { | |||
return resp.text() | |||
} | |||
throw new Error('系统错误,无法获取数据'); | |||
}).then((d)=>{ | |||
$DE('messagetd').innerHTML = d; | |||
$Obj('loaddiv').style.display = 'none'; | |||
}).catch((error) => { | |||
$DE('messagetd').innerHTML = errMsg; | |||
}); | |||
} | |||
</script> | |||
</head> | |||
@@ -28,17 +28,17 @@ | |||
<ul> | |||
<li><input type='text' name='keyword' value="<?php if(!empty($keyword)) $keyword = ''; ?>" placeholder="请输入关键词" style="width:260px"></li> | |||
<li><?php | |||
$likeid = (!isset($likeid) ? '' : $likeid); | |||
echo "<select name='likeid' id='likeid' style='width:160px'>"; | |||
$dsql->Execute("s","Select likeid From `#@__sgpage` group by likeid "); | |||
echo "<option value=''>不限</option>"; | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if($likeid==$arr['likeid']) echo "<option value='{$arr['likeid']}' selected>{$arr['likeid']}</option>"; | |||
else echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>"; | |||
} | |||
echo "</select>"; | |||
?></li> | |||
$likeid = (!isset($likeid) ? '' : $likeid); | |||
echo "<select name='likeid' id='likeid' style='width:160px'>"; | |||
$dsql->Execute("s","Select likeid From `#@__sgpage` group by likeid "); | |||
echo "<option value=''>不限</option>"; | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if($likeid==$arr['likeid']) echo "<option value='{$arr['likeid']}' selected>{$arr['likeid']}</option>"; | |||
else echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>"; | |||
} | |||
echo "</select>"; | |||
?></li> | |||
<li><button type="submit" name="button1" id="button1" class="btn btn-success btn-sm">搜索</button></li> | |||
</ul> | |||
</form> | |||
@@ -28,7 +28,7 @@ | |||
<td colspan="4" height="26"> | |||
<div style="float:left;line-height:26px">当前位置:标签源码碎片管理(文件存放在 ../system/taglib 文件夹)</div> | |||
<div style="float:right;padding-right:10px"> | |||
<a href='tpl.php?action=addnewtag' class="btn btn-success btn-sm">增加一个新的标签</a> | |||
<a href="tpl.php?action=addnewtag" class="btn btn-success btn-sm">增加一个新的标签</a> | |||
</div> | |||
</td> | |||
</tr> | |||
@@ -38,27 +38,19 @@ | |||
</td> | |||
</tr> | |||
<?php | |||
$dh = dir($libdir); | |||
while($filename=$dh->read()) | |||
{ | |||
$dh = dir($libdir); | |||
while($filename=$dh->read()) | |||
{ | |||
if(!preg_match("#\.php$#", $filename)) continue; | |||
$filetime = filemtime($libdir.'/'.$filename); | |||
$filetime = MyDate("Y-m-d H:i",$filetime); | |||
$fileinfo = GetHelpInfo(str_replace('.lib.php','',$filename)); | |||
?> | |||
?> | |||
<tr height="26" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td> | |||
<img src='../static/web/img/htm.gif' align='absmiddle'> <?php echo $filename; ?> | |||
</td> | |||
<td> | |||
<?php echo $fileinfo; ?> | |||
</td> | |||
<td align='center'> | |||
<?php echo $filetime; ?> | |||
</td> | |||
<td align='center'> | |||
<a href='tpl.php?action=edittag&filename=<?php echo $filename; ?>' class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
</td> | |||
<td><img src="../static/web/img/htm.gif"><?php echo $filename; ?></td> | |||
<td><?php echo $fileinfo; ?></td> | |||
<td align="center"><?php echo $filetime; ?></td> | |||
<td align="center"><a href="tpl.php?action=edittag&filename=<?php echo $filename; ?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 编辑</a></td> | |||
</tr> | |||
<?php } ?> | |||
</table> | |||
@@ -11,21 +11,21 @@ | |||
</head> | |||
<body> | |||
<table width="98%" align="center" cellpadding="3" cellspacing="1"> | |||
<tr> | |||
<tr> | |||
<td height="26" background="../static/web/img/tbg.gif"> | |||
<div style="float:left">自动更新程序::待下载文件列表</div> | |||
<div style="float:right;padding-right:10px"> | |||
<a href="index_body.php" class="np coolbg">返回系统主页</a> | |||
</div> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="360" valign="top" style="padding:6px"> | |||
<?php | |||
echo $allFileList; | |||
?> | |||
</td> | |||
</tr> | |||
</tr> | |||
<tr> | |||
<td height="360" valign="top" style="padding:6px"> | |||
<?php | |||
echo $allFileList; | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -79,7 +79,8 @@ | |||
<label><input name="isallow" type="radio" class="np" value="0" <?php if($row['isallow']==0) echo " checked"; ?>> | |||
是</label> | |||
<label><input type="radio" name="isallow" class="np" value="1" <?php if($row['isallow']==1) echo " checked"; ?>> | |||
否</label></td> | |||
否</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26">是否允许查看投票:</td> | |||
@@ -16,9 +16,7 @@ | |||
<td width="100%" height="26"> | |||
<table width="100%" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td height="26"><i class="fa fa-book"></i> | |||
{dede:wecome_info/} | |||
</td> | |||
<td height="26"><i class="fa fa-book"></i> {dede:wecome_info/}</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -27,7 +25,7 @@ | |||
<td width="100%" height="1" background="../static/web/img/sp_bg.gif"></td> | |||
</tr> | |||
<tr> | |||
<td width="100%" height="4"></td> | |||
<td width="100%" height="2"></td> | |||
</tr> | |||
<tr> | |||
<td width="100%" height="26">{dede:winform/}</td> | |||
@@ -36,7 +34,7 @@ | |||
<td width="100%" height="2"></td> | |||
</tr> | |||
</table> | |||
<p align="center"> | |||
<p style="text-align:center"> | |||
{dede:lang_cms_powerby/} | |||
</p> | |||
</body> |