templates/1/best/default/phone/add.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<div id=<?php echo $module['module_name'];?> class="portlet light" monxin-module="<?php echo $module['module_name'];?>" align=left >
<script>
$(document).ready(function(){
$("#<?php echo $module['module_name'];?> .quantity").change(function(){
quantity=$(this).val();
exist=($("#<?php echo $module['module_name'];?> .paragraph").length-1);
v=quantity-exist;
if(v==0){return false;}
if(v>0){
html='';
for(i=exist;i<quantity;i++){
html+='<div class=paragraph><span class=m_label><input type="text" class=p_title placeholder="<?php echo self::$language['paragraph'];?><?php echo self::$language['title']?>" /></span><span class=m_input><input type="hidden" class=p_content value=0 /><a href=# class=p_content_button><?php echo self::$language['content']?></a><span class=move></span></span></div>';
}
$("#<?php echo $module['module_name'];?> .content_div").append(html);
}else{
$("#<?php echo $module['module_name'];?> .paragraph").each(function(index, element) {
//alert(index+'>'+v);
if(index>quantity){$(this).remove();}
});
}
$( ".content_div" ).sortable({
connectWith: ".content_div"
}).disableSelection();
});
$(document).on('click','#<?php echo $module['module_name'];?> .p_content_button',function(){
index=($(this).parent().parent().index());
id=$(this).prev('input').val();
set_iframe_position($(window).width()-100,$(window).height()-20);
//monxin_alert(replace_file);
$("#monxin_iframe").attr('scrolling','auto');
$("#fade_div").css('display','block');
$("#set_monxin_iframe_div").css('display','block');
$("#monxin_iframe").attr('src','./index.php?monxin=best.paragraph&id='+id+'&index='+index);
return false;
});
$("#<?php echo $module['module_name'];?> #submit").click(function(){
var type=$("#<?php echo $module['module_name'];?> #type");
var title=$("#<?php echo $module['module_name'];?> #title");
if(type.prop('value')<1){monxin_alert('<?php echo self::$language['please_select']?><?php echo self::$language['belong']?>');type.focus();return false;}
if(title.prop('value')==''){monxin_alert('<?php echo self::$language['please_input']?><?php echo self::$language['title']?>');title.focus();return false;}
paragraph_title=new Object();
paragraph_content=new Object();
$("#<?php echo $module['module_name'];?> .paragraph").each(function(index, element) {
if($(this).children('.m_label').children('.p_title').val()!=''){
paragraph_title[index]=$(this).children('.m_label').children('.p_title').val();
paragraph_content[index]=$(this).children('.m_input').children('.p_content').val();
}
});
$("#<?php echo $module['module_name'];?> #submit").next('.state').html('<span class=\'fa fa-spinner fa-spin\'></span>');
$.post('<?php echo $module['action_url'];?>&act=add',{type:type.prop('value'),title:title.prop('value'),link:$("#<?php echo $module['module_name'];?> #link").val(),key:$("#<?php echo $module['module_name'];?> #key").val(),paragraph_title:paragraph_title,paragraph_content:paragraph_content}, function(data){
//alert(data);
v=eval("("+data+")");
$("#<?php echo $module['module_name'];?> #submit").next('.state').html(v.info);
if(v.url){window.location.href=v.url;}
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
