国内流行的内容管理系统(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.

374 lines
16KB

  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 href="css/base.css" rel="stylesheet" type="text/css">
  7. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  8. <script type="text/javascript" src="js/calendar/calendar.js"></script>
  9. <script language="javascript" src="js/main.js"></script>
  10. <script language="javascript" src="inc/spark/js/swfobject.js"></script>
  11. <script language="javascript">
  12. <!--
  13. function checkSubmit()
  14. {
  15. if(document.form1.title.value==""){
  16. alert("视频名称不能为空!");
  17. document.form1.title.focus();
  18. return false;
  19. }
  20. if(document.form1.typeid.value==0){
  21. alert("请选择档案的主类别!");
  22. return false;
  23. }
  24. if(document.form1.videourl.value==""){
  25. alert("视频地址不能为空");
  26. return false;
  27. }
  28. }
  29. if($Nav()!="IE") ShowObj('adset');
  30. </script>
  31. </head>
  32. <body topmargin="8">
  33. <form name="form1" action="video_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  34. <input type="hidden" name="dopost" value="save" />
  35. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  36. <input type="hidden" name="cid" value="<?php echo $cid; ?>" />
  37. <input type="hidden" name="id" value="<?php echo $aid?>" />
  38. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  39. <tr>
  40. <td width="64%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>视频列表</u></a>&gt;&gt;发布新视频</td>
  41. <td align="right">&nbsp; <a href="catalog_main.php">[<u>栏目管理</u>]</a>
  42. </td>
  43. </tr>
  44. </table>
  45. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  46. <tr>
  47. <td colspan="2">
  48. <table border="0" cellpadding="0" cellspacing="0">
  49. <tr>
  50. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  51. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>高级参数</u></a></td>
  52. </tr>
  53. </table>
  54. </td>
  55. </tr>
  56. </table>
  57. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  58. <tr>
  59. <td colspan="2"> <table height="24" border="0" cellpadding="0" cellspacing="0">
  60. <tr>
  61. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>常规信息</u></a>&nbsp;</td>
  62. <td width="84" align="center" background="images/itemnote1.gif">高级参数</td>
  63. </tr>
  64. </table></td>
  65. </tr>
  66. </table>
  67. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  68. <tr>
  69. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  70. <tr>
  71. <td width="90">&nbsp;视频名称:</td>
  72. <td width='408'><input name="title" type="text" value="<?php echo $arcRow['title']; ?>" id="title" style="width:388px"> </td>
  73. <td width="90">&nbsp;简略标题:</td>
  74. <td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" value="<?php echo $arcRow['shorttitle']; ?>" > </td>
  75. </tr>
  76. </table></td>
  77. </tr>
  78. <tr>
  79. <td width="400%" height="24" class="bline">
  80. <table width="800" border="0" cellspacing="0" cellpadding="0">
  81. <tr>
  82. <td width="90">&nbsp;自定义属性:</td>
  83. <td>
  84. <?php
  85. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  86. $dsql->Execute();
  87. while($trow = $dsql->GetObject())
  88. {
  89. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  90. else $jumpclick = '';
  91. if(preg_match("#".$trow->att."#",$arcRow['flag']))
  92. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]";
  93. else
  94. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]";
  95. }
  96. ?>
  97. </td>
  98. </tr>
  99. </table></td>
  100. </tr>
  101. <tr>
  102. <td height="24" class="bline" id="redirecturltr" style="display:none">
  103. <table width="800" border="0" cellspacing="0" cellpadding="0">
  104. <tr>
  105. <td width="90">&nbsp;跳转网址:</td>
  106. <td>
  107. <input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow["redirecturl"]?>" /> </td>
  108. </tr>
  109. </table> </td>
  110. </tr>
  111. <tr>
  112. <td width="400%" height="24" class="bline">
  113. <table width="800" border="0" cellspacing="0" cellpadding="0">
  114. <tr>
  115. <td width="90">&nbsp;TAG标签:</td>
  116. <td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px" onChange="$Obj('keywords').value=this.value;" />(','号分开,单个标签小于12字节)</td>
  117. </tr>
  118. </table>
  119. </td>
  120. </tr>
  121. <tr id="pictable">
  122. <td height="24" colspan="4" class="bline">
  123. <table width="800" border="0" cellspacing="0" cellpadding="0">
  124. <tr>
  125. <td width="90"> &nbsp;缩 略 图:</td>
  126. <td width="560">
  127. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  128. <tr>
  129. <td height="30">
  130. <input name="picname" type="text" id="picname" style="width:240px" value="<?php echo $arcRow["litpic"]?>" />
  131. <input type="button" value="本地上传" style="width:70px;cursor:pointer;" />
  132. <iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
  133. <span class="litpic_span"><input name="litpic" type="file" id="litpic" onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'video_edit.php');" size="1" class='np coolbg'/></span>
  134. <input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImage('form1.picname','small');" class='np coolbg'/>
  135. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  136. <input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'/>远程
  137. </td>
  138. </tr>
  139. </table>
  140. </td>
  141. <td width="150" align="center">
  142. <div id='divpicview' class='divpre'></div>
  143. </td>
  144. </tr>
  145. </table></td>
  146. </tr>
  147. <tr>
  148. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  149. <tr>
  150. <td width="90">&nbsp;视频来源:</td>
  151. <td width="240">
  152. <input name="source" type="text" id="source" style="width:200px" value="<?php echo $arcRow["source"]?>"> </td>
  153. <td width="90">视频作者:</td>
  154. <td width="159"><input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>"></td>
  155. <td>&nbsp;</td>
  156. </tr>
  157. </table></td>
  158. </tr>
  159. <tr>
  160. <td height="24" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
  161. <tr>
  162. <td width="90">&nbsp;视频主栏目:</td>
  163. <td>
  164. <?php
  165. $typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid);
  166. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  167. if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类...</option>\r\n";
  168. echo $typeOptions;
  169. echo "</select>";
  170. ?>
  171. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' />
  172. <?php
  173. if($cfg_remote_site=='Y')
  174. {
  175. ?>  
  176. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php
  177. }
  178. ?>
  179. </td>
  180. </tr>
  181. </table> </td>
  182. </tr>
  183. <tr id='typeid2tr' style='display:none'>
  184. <td height="24" colspan="4" class="bline">
  185. <table width="800" border="0" cellspacing="0" cellpadding="0">
  186. <tr>
  187. <td width="90">&nbsp;视频副栏目:</td>
  188. <td>
  189. <span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' style='width:200px;' />
  190. <img src='images/menusearch2.gif' style='cursor:pointer;' onclick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' />
  191. </td>
  192. </tr>
  193. </table>
  194. </td>
  195. </tr>
  196. <tr>
  197. <td height="24" bgcolor="#F1F5F2" class="bline2"><strong>视频地址:</strong></td>
  198. </tr>
  199. <tr>
  200. <td height="24" class="bline">
  201. <table width="800" border="0" cellspacing="0" cellpadding="0">
  202. <tr>
  203. <td width="90">&nbsp;视频地址:</td>
  204. <td>
  205. <input name="videourl" type="text" id="videourl" style="width:300px;float:left;margin-right:5px;" value="<?php echo $addRow["videourl"]?>">
  206. <div style='float:left;'>
  207. <!-- cc视频插件代码 -->
  208. <object width='72' height='24'>
  209. <param name='wmode' value='transparent' />
  210. <param name='allowScriptAccess' value='always' />
  211. <param name='movie' value='http://union.bokecc.com/flash/plugin/plugin_13.swf?userID=198119&type=其他' />
  212. <embed src='http://union.bokecc.com/flash/plugin/plugin_13.swf?userID=198119&type=其他' type='application/x-shockwave-flash' width='72' height='24' allowScriptAccess='always' wmode='transparent'></embed>
  213. </object>
  214. <!-- cc视频插件代码 -->
  215. </div>
  216. </td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. <tr>
  222. <td height="24" bgcolor="#F1F5F2" class="bline2"><strong>剧情介绍:</strong></td>
  223. </tr>
  224. <tr>
  225. <td height="24" colspan="4" class="bline">
  226. <table width="800" border="0" cellspacing="0" cellpadding="0">
  227. <tr>
  228. <td width="90">&nbsp;内容摘要:</td>
  229. <td width="500"><textarea name="description" rows="3" id="description" style="width:80%;height:200px;"><?php echo $arcRow["description"]?></textarea></td>
  230. <td>&nbsp;</td>
  231. </tr>
  232. </table>
  233. </td>
  234. </tr>
  235. </table>
  236. <!-- //高级参数 -->
  237. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="display:none;border:1px solid #cfcfcf;background:#ffffff;">
  238. <tr>
  239. <td height="24" colspan="4" class="bline">
  240. <table width="800" border="0" cellspacing="0" cellpadding="0">
  241. <tr>
  242. <td width="90" height="22">&nbsp;文章排序:</td>
  243. <td width="240"> <select name="sortup" id="sortup" style="width:150">
  244. <?php
  245. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  246. echo "<option value='0'>正常排序</option>\r\n";
  247. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  248. ?>
  249. <option value="7">置顶一周</option>
  250. <option value="30">置顶一个月</option>
  251. <option value="90">置顶三个月</option>
  252. <option value="180">置顶半年</option>
  253. <option value="360">置顶一年</option>
  254. </select> </td>
  255. <td width="90">标题颜色:</td>
  256. <td>
  257. <input name="color" type="text" id="color" style="width:120px">
  258. <input type="button" onclick="ShowColor(event,this)" value="选取" id="modcolor" name="modcolor">
  259. </td>
  260. </tr>
  261. </table></td>
  262. </tr>
  263. <tr>
  264. <td height="24" colspan="4" class="bline">
  265. <table width="800" border="0" cellspacing="0" cellpadding="0">
  266. <tr>
  267. <td width="90">&nbsp;阅读权限:</td>
  268. <td width="250">
  269. <select name="arcrank" id="arcrank" style="width:150px">
  270. <option value='<?php echo $arcRow["arcrank"]; ?>'><?php echo ($arcRow["arcrank"]==0 ? '已审核状态' : $arcRow["rankname"]); ?></option>
  271. <option value='0'>已审核状态</option>
  272. <option value='-1'>未审核状态</option>
  273. </select>
  274. </td>
  275. <td width="90">发布选项:</td>
  276. <td> <input name="ishtml" type="radio" class="np" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  277. 生成HTML
  278. <input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?>>
  279. 仅动态浏览 </td>
  280. </tr>
  281. </table></td>
  282. </tr>
  283. <tr>
  284. <td height="75" class="bline">
  285. <table width="800" border="0" cellspacing="0" cellpadding="0">
  286. <tr>
  287. <td width="90">&nbsp;更新时间:</td>
  288. <td width="241">
  289. <?php
  290. $nowtime = GetDateTimeMk($arcRow["pubdate"]);
  291. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200;\" >";
  292. ?>
  293. <script language="javascript" type="text/javascript">
  294. Calendar.setup({
  295. inputField : "pubdate",
  296. ifFormat : "%Y-%m-%d %H:%M:%S",
  297. showsTime : true,
  298. timeFormat : "24"
  299. });
  300. </script> </td>
  301. <td width="92">消费金币:</td>
  302. <td width="368">
  303. <input name="money" type="hidden" id="money" value="<?php echo $arcRow["money"]?>" />(此项已经独立分离)
  304. </td>
  305. </tr>
  306. </table>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td height="24" class="bline">
  311. <table width="800" border="0" cellspacing="0" cellpadding="0">
  312. <tr>
  313. <td width="90" height="51">&nbsp;关键字:</td>
  314. <td>
  315. <input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" />
  316. </td>
  317. </tr>
  318. </table>
  319. </td>
  320. </tr>
  321. <tr>
  322. <td height="24" colspan="4" class="bline">
  323. <table width="800" border="0" cellspacing="0" cellpadding="0">
  324. <tr>
  325. <td width="90">&nbsp;自定义文件名:</td>
  326. <td width="449"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td>
  327. <td width="261">&nbsp;</td>
  328. </tr>
  329. </table>
  330. </td>
  331. </tr>
  332. <tr>
  333. <td height="24" colspan="4">&nbsp;</td>
  334. </tr>
  335. </table>
  336. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  337. <tr>
  338. <td height="35">
  339. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  340. <tr>
  341. <td width="17%">&nbsp;</td>
  342. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  343. <tr>
  344. <td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0"></td>
  345. <td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer;"></td>
  346. </tr>
  347. </table></td>
  348. </tr>
  349. </table></td>
  350. </tr>
  351. </table>
  352. </form>
  353. <script language='javascript'>InitPage();</script>
  354. </body>
  355. </html>