templates/1/agency/default/phone/set.php

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<div id=<?php echo $module['module_name'];?>  class="portlet light" monxin-module="<?php echo $module['module_name'];?>" align=left  >
    <script>
    $(document).ready(function(){
		$('#icon_ele').insertBefore($('#icon_state'));
		$('#banner_ele').insertBefore($('#banner_state'));
		$("#<?php echo $module['module_name'];?> #template").val($("#<?php echo $module['module_name'];?> #template").attr('monxin_value'));
		
		$("#<?php echo $module['module_name'];?>_html .submit").click(function(){
			$("#<?php echo $module['module_name'];?> .state").html('');
			is_null=false;
			obj=new Object();
			$("#<?php echo $module['module_name'];?>_html input").each(function(index, element) {
				if($(this).attr('id')!='icon_file' && $(this).attr('id')!='banner_file'){
					if($(this).prop('value')==''){
						if($(this).attr('id')=='icon' || $(this).attr('id')=='banner'){
							//$(this).parent().parent().children('.state').html('<span class=fail><?php echo self::$language['is_null']?></span>');
						}else{
							$(this).parent().children('.state').html('<span class=fail><?php echo self::$language['is_null']?></span>');
							$(this).focus();
							//alert($(this).attr('id'));
							is_null=true; return false;	
						}
					}
					
					obj[$(this).attr('id')]=$(this).val();
				}
            });
			if(is_null){return false;}
			obj['name']=$("#<?php echo $module['module_name'];?>_html #name").val();
			obj['template']=$("#<?php echo $module['module_name'];?>_html #template").val();
			$("#<?php echo $module['module_name'];?>_html .submit").next().html('<span class=\'fa fa-spinner fa-spin\'></span>');
			$.post('<?php echo $module['action_url'];?>&act=update',obj, function(data){
				//alert(data);
				try{v=eval("("+data+")");}catch(exception){alert(data);}
				$("#<?php echo $module['module_name'];?>_html .submit").next().html(v.info);
				
				if(v.state=='fail'){
					if(v.key){
						if(v.key=='certificate' || v.key=='self_certificate'){
							$("#<?php echo $module['module_name'];?>_html #"+v.key).parent().parent().children('.state').html(v.info);
						}else{
							$("#<?php echo $module['module_name'];?>_html #"+v.key).parent().children('.state').html(v.info);
						}
						$("#<?php echo $module['module_name'];?>_html #"+v.key).focus();
						$("#<?php echo $module['module_name'];?>_html .submit").next().html('<span class=fail><?php echo self::$language['fail']?></span>');
					}
					
				}else{
					//$("#<?php echo $module['module_name'];?>_html").html(v.info).css('text-align','center').css('line-height','100px');
				}
				
			});
			return false;	
		});
    });
	
	function submit_hidden(input_id){
		$("#<?php echo $module['module_name'];?> ."+input_id+"_img").attr('src','./temp/'+$("#<?php echo $module['module_name'];?> #"+input_id).val());	
	}
    </script>
后面还有 35 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。