标签:
单页添加图片字段:
<?php defined(‘IN_ADMIN‘) or exit(‘No permission resources.‘); include $this->admin_tpl(‘header‘,‘admin‘);?> <div id="closeParentTime" style="display:none"></div> <link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="{JS_PATH}jquery.min.js"></script> <script type="text/javascript" src="{JS_PATH}dialog.js"></script> <SCRIPT LANGUAGE="JavaScript"> <!-- if(window.top.$("#current_pos").data(‘clicknum‘)==1) { parent.document.getElementById(‘display_center_id‘).style.display=‘‘; parent.document.getElementById(‘center_frame‘).src = ‘?m=content&c=content&a=public_categorys&type=add&menuid=<?php echo $_GET[‘menuid‘];?>‘; window.top.$("#current_pos").data(‘clicknum‘,0); } $(document).ready(function(){ setInterval(closeParent,3000); }); function closeParent() { if($(‘#closeParentTime‘).html() == ‘‘) { window.top.$(".left_menu").addClass("left_menu_on"); window.top.$("#openClose").addClass("close"); window.top.$("html").addClass("on"); $(‘#closeParentTime‘).html(‘1‘); window.top.$("#openClose").data(‘clicknum‘,1); } } //--> </SCRIPT> <div class="pad-lr-10"> <div class="pad-10"> <div class="content-menu ib-a blue line-x"><a href="javascript:;" class=on><em><?php echo L(‘page_manage‘);?></em></a><span>|</span> <a href="<?php if(strpos($category[‘url‘],‘http://‘)===false) echo siteurl($this->siteid);echo $category[‘url‘];?>" target="_blank"><em><?php echo L(‘click_vistor‘);?></em></a> <span>|</span> <a href="?m=block&c=block_admin&a=public_visualization&catid=<?php echo $catid;?>&type=page"><em><?php echo L(‘visualization_edit‘);?></em></a> </div> </div> <form name="myform" action="?m=content&c=content&a=add" method="post" enctype="multipart/form-data"> <div class="pad_10"> <div style=‘overflow-y:auto;overflow-x:hidden‘ class=‘scrolltable‘> <table width="100%" cellspacing="0" class="table_form contentWrap"> <tr> <th width="80"> <?php echo L(‘title‘);?> </th> <td><input type="text" style="width:400px;" name="info[title]" id="title" value="<?php echo $title?>" style="color:<?php echo $style;?>" class="measure-input " onBlur="$.post(‘api.php?op=get_keywords&number=3&sid=‘+Math.random()*5, {data:$(‘#title‘).val()}, function(data){if(data && $(‘#keywords‘).val()==‘‘) $(‘#keywords‘).val(data); })"/> <input type="hidden" name="style_color" id="style_color" value="<?php echo $style_color;?>"> <input type="hidden" name="style_font_weight" id="style_font_weight" value="<?php echo $style_font_weight;?>"> <img src="statics/images/icon/colour.png" width="15" height="16" onclick="colorpicker(‘title_colorpanel‘,‘set_title_color‘);" style="cursor:hand"/> <img src="statics/images/icon/bold.png" width="10" height="10" onclick="input_font_bold()" style="cursor:hand"/> <span id="title_colorpanel" style="position:absolute; z-index:200" class="colorpanel"></span> </td> </tr> <tr> <th width="80"> <?php echo L(‘keywords‘);?> </th> <td><input type="text" name="info[keywords]" id="keywords" value="<?php echo $keywords?>" size="50"> <?php echo L(‘explode_keywords‘);?></td> </tr> <tr> <th width="80"> 缩略图 </th> <td> <script type="text/javascript" src="{JS_PATH}swfupload/swf2ckeditor.js"></script> <script language="javascript" type="text/javascript" src="{JS_PATH}content_addtop.js"></script> <input type=‘text‘ name=‘info[thumb]‘ style="width:400px;" id=‘thumb‘ value="<?php echo $thumb?>" size=‘‘ class=‘input-text‘ /> <input type=‘button‘ class=‘button‘ onclick="javascript:flashupload(‘thumb_images‘, ‘附件上传‘,‘thumb‘,submit_images,‘1,gif|jpg|jpeg|png|bmp,1,,‘,‘member‘,‘‘,‘35c6d74d00e7e50b5141eb3246c9e5ed‘)" value=‘图片上传‘ /> </td> </tr> <tr> <th width="80"> <?php echo L(‘content‘);?> </th> <td> <textarea name="info[content]" id="content"><?php echo $content?></textarea> <?php echo form::editor(‘content‘,‘full‘,‘‘,‘‘,‘‘,1,1)?> </td></tr> </table> </div> <div class="bk10"></div> <div class="btn"> <input type="hidden" name="info[catid]" value="<?php echo $catid;?>" /> <input type="hidden" name="edit" value="<?php echo $title ? 1 : 0;?>" /> <input type="submit" class="button" name="dosubmit" value="<?php echo L(‘submit‘);?>" /> </div> </div> </form> </div> <script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>content_addtop.js"></script> <script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>colorpicker.js"></script> </body> </html>
标签:
原文地址:http://www.cnblogs.com/gimin/p/4572685.html