123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <div id="msg"></div>
- <form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>&iscreatehtml=1" method="post">
- <div id="filelist" class="hide"></div>
- <div class="error"><ul></ul></div>
- <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
- <volist name="fields" id="r">
- <if condition="!empty($r['status'])">
- <tr>
- <td width="10%" ><if condition="$r['required']"><font color="red">*</font></if>{$r.name}</td>
- <td width="90%" id="box_{$r['field']}">
- {$r|getform=$form,###}
- </td>
- </tr>
- </if>
- </volist>
- </table>
- <div id="bootline"></div>
- <div id="btnbox" class="btn">
- <if condition="$vo['id']!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
- <input type="hidden" name="lang" value="{$langid}" />
- <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
- <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
- <input TYPE="reset" value="{:L('cancel')}" class="button">
- </div>
- </form>
- </div>
- <script>
-
- var catid = $("#catid"),
- tips = $(".thumb_tips");
- {if $action_name!='add'}
- tips.html({$datas[0]}+'*'+{$datas[1]}+"px");
- {/if}
- catid.change(function(){
- $.ajax({
- type : "post",
- url : "{:URL('Admin-Content/get_img')}",
- data : {
- cid : $(this).val(),
- model : "Article",
- },
- dataType : "json",
- success : function(msg){
- if(msg[0]){
- tips.html(msg[0]+'*'+msg[1]+"px");
- }else{
- tips.html("0");
- }
- }
- })
- })
- </script>
|