国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

public_guide.htm 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>内容发布向导</title>
  6. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link href="css/base.css" rel="stylesheet" type="text/css" />
  9. <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script>
  10. <script src="../static/js/bootstrap.bundle.js"></script>
  11. <script language="javascript" src="js/main.js"></script>
  12. <style>
  13. .np { border:0px }
  14. </style>
  15. <script language='javascript'>
  16. var selCheckbox = '';
  17. function ResetBox(selid)
  18. {
  19. var selobj = document.getElementById(selid);
  20. var preobj = null;
  21. if(selCheckbox!='') preobj = document.getElementById(selCheckbox);
  22. if(selobj.checked){
  23. if(preobj!=null && selid != selCheckbox) preobj.checked = false;
  24. selCheckbox = selid;
  25. }else{
  26. if(selCheckbox == selid) selCheckbox = '';
  27. }
  28. }
  29. function SetDefault()
  30. {
  31. if(selCheckbox==''){
  32. ShowMsg("你没有选中需要设置为默认的栏目!");
  33. }else{
  34. var selobj = document.getElementById(selCheckbox);
  35. location="public_guide.php?action=setdefault&cid="+selobj.value;
  36. }
  37. }
  38. function ResetDefault(){
  39. location="public_guide.php?action=setdefault&cid=0";
  40. }
  41. </script>
  42. </head>
  43. <body leftmargin="8" topmargin="8" background='images/allbg.gif'>
  44. <table width="98%" height="31" border="0" align="center" cellpadding="1" cellspacing="1" class="table maintable table-bordered mt-3" style="border:1px solid #CFCFCF;margin-top:6px;border-bottom:none;">
  45. <tr>
  46. <td class="tbtitletxt" background='images/tbg.gif'><strong>&nbsp;内容发布向导:</strong></td>
  47. </tr>
  48. </table>
  49. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" style="border:1px solid #CFCFCF;" class="table maintable table-borderless mt-3">
  50. <tr align="center">
  51. <td height="120" align="left" valign="top" bgcolor="#FFFFFF" style="padding:6px;padding-bottom:20px">
  52. <table width="100%" border="0" cellspacing="0" cellpadding="6">
  53. <tr>
  54. <td><strong>内容发布说明:</strong><br />
  55. 1、必须先建立与频道内容模型关连的栏目才能发布内容(<a href="catalog_main.php"><u>栏目管理</u></a>);<br />
  56. 2、如果您设置了某频道为默认发布表单,以后将不再显示此向导,而是直接显示您所选的频道的发布表单,如果想要发布其它频道的内容,可以从左边的目录树中选择,如果以后您想要修改默认发布表单,请点击目录树上方的“发布向导”图标;</td>
  57. </tr>
  58. </table>
  59. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered">
  60. <tr height="22" align="center" bgcolor="#FBFCE2">
  61. <td width="8%" ><strong>选择</strong></td>
  62. <td width="8%"><strong>频道ID</strong></td>
  63. <td width="20%"><strong>频道内容模型</strong></td>
  64. <td width="23%"><strong>附加表</strong></td>
  65. <td width="10%"><strong>栏目数</strong></td>
  66. <td><strong>操作选项</strong></td>
  67. </tr>
  68. <?php
  69. $i=0;
  70. while($row = $dsql->GetArray()){
  71. $i++;
  72. $row['mancon'] = ($row['mancon']=='' ? 'content_list.php?channelid='.$row['id'] : $row['mancon'].'?channelid='.$row['id']);
  73. $checkbox = ($row['isdefault']==0 ? '' : ' checked');
  74. if($checkbox!=''){
  75. echo "<script language='javascript'>selCheckbox='cid{$i}';</script>\r\n";
  76. }
  77. $catnum = GetCatalogs($dsql,$row['id']);
  78. ?>
  79. <tr align="center" bgcolor="#FFFFFF" height="20" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
  80. <td><input type="checkbox" name="cid<?php echo $i; ?>" id="cid<?php echo $i; ?>" onClick="ResetBox('cid<?php echo $i; ?>')" value="<?php echo $row['id']; ?>" class="np" <?php echo $checkbox; ?>/></td>
  81. <td><?php echo $row['id']; ?></td>
  82. <td><?php echo $row['typename']; ?></td>
  83. <td><?php echo $row['addtable']; ?></td>
  84. <td><?php echo $catnum; ?></td>
  85. <td>
  86. <a href="catalog_main.php" class="btn btn-secondary btn-sm">管理栏目</a>
  87. <?php
  88. if($catnum>0){
  89. ?>
  90. <a href="<?php echo $row['mancon']; ?>" class="btn btn-secondary btn-sm">管理内容</a>
  91. <a href="catalog_do.php?channelid=<?php echo $row['id'];?>&cid=0&dopost=addArchives" class="btn btn-secondary btn-sm">发布内容</a>
  92. <?php }else{ ?>
  93. |
  94. <font color='#cccccc'>管理内容</font>
  95. |
  96. <font color='#cccccc'>发布内容</font>
  97. <?php } ?>
  98. </td>
  99. </tr>
  100. <?php
  101. }
  102. ?>
  103. </table>
  104. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  105. <tr>
  106. <td>
  107. <button name="b1" type="button" id="b1" onClick="SetDefault()" class="btn btn-secondary btn-sm">把所选的频道表单设为默认表单</button>
  108. &nbsp;&nbsp;
  109. <button name="b2" type="button" id="b2" onClick="ResetDefault()" class="btn btn-secondary btn-sm">取消默认表单</button>
  110. </td>
  111. </tr>
  112. </table></td>
  113. </tr>
  114. </table>
  115. <div align="center">&nbsp;</div>
  116. </body>
  117. </html>