Slide_editpic.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <div id="infobox" >
  2. <a href="{:U('Slide/index')}" style="float:right;">{:L(gobacklist)}</a>
  3. {$slide[name]} : <a href="{:U('Slide/picmanage?fid='.$_GET[fid])}" class="ui-btn">{:L('return')} - {:L('images_manage')}</a>
  4. </div>
  5. <form name="myform" id="myform" action="<if condition="$action_name=='addpic'">{:U($module_name.'/insertpic')}<else />{:U($module_name.'/updatepic')}</if>" method="post">
  6. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  7. <tr>
  8. <td width="120"><font color="red">*</font>{:L('title')}</td>
  9. <td><input type="text" id="title" name="title" value="{$vo.title}" class="input-text" size="50" validate="required:true,cn_username:true, minlength:2, maxlength:20"/></td>
  10. </tr>
  11. <tr>
  12. <td>{:L(link)}</td>
  13. <td><input type="text" id="link" name="link" value="{$vo.link}" class="input-text" size="50" /></td>
  14. </tr>
  15. <tr>
  16. <td>{:L(pic)}</td>
  17. <td>
  18. <div class="pic_box" ><div id="pic_aid_box" style="display:none;"></div>
  19. <input type="text" id="pic" name="pic" value="{$vo['pic']}" class="input-text" size="40"/><input type="button" class="button" value="{:L(upload)}" onclick="javascript:swfupload('pic_uploadfile','pic','{:L(uploadfiles)}',1,1,0,10,'jpeg,jpg,png,gif',5,230,'{$yourphp_auth}',yesdo,nodo)" /> <a href="javascript:void(0);" onclick="showpicbox($('#pic').val());"> {:L(view)}</a>
  20. {:L('size')}:{$slide['width']}*{$slide['height']}px
  21. </div>
  22. </td>
  23. </tr>
  24. <tr>
  25. <td>{:L(STATUS)}</td>
  26. <td>{:Form::radio(array('field'=>'status','options'=>array('1'=>L('display_yes'),'0'=>L('display_no'))),$vo['status'])}</td>
  27. </tr>
  28. </table>
  29. <div class="btn">
  30. <if condition="$vo['id']!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
  31. <input TYPE="hidden" name="fid" value="{$fid}">
  32. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  33. <input TYPE="reset" value="{:L('cancel')}" class="button">
  34. </div>
  35. </form>
  36. </div>
  37. </body></html>