我有一个手风琴,其中有对话框的链接,但是当对话框打开时它没有保存字段并且没有重定向,这是什么问题?我尝试了很多,但没有得到任何成功。
这是我的观点:
<?php v_start($d);?>
<script>
$(function() {
var icons = {
header: "ui-icon-circle-arrow-e",
activeHeader: "ui-icon-circle-arrow-s"
};
$( "#accordion" ).accordion({
icons: icons
});
$( "#toggle" ).button().click(function() {
if ( $( "#accordion" ).accordion( "option", "icons" ) ) {
$( "#accordion" ).accordion( "option", "icons", null );
} else {
$( "#accordion" ).accordion( "option", "icons", icons );
}
});
});
$(function()
{
var $dialog = $("#view_dialog").dialog({
autoOpen: false,
title: 'Add Group',
height: 200,
width: 1200,
resizable: true,
modal: true,
buttons:
{
"Ok": function()
{
$(this).dialog("close");
}
}
});
$(".view_dialog").click(function()
{
$dialog.load($(this).attr('href'), function ()
{
$dialog.dialog('open');
});
return false;
});
});
</script>
<div class="inner-heading">
<div class="inner-heading-left">
<h1><?php echo __l('Manage Groups');?></h1>
</div>
</div>
<div id="accordion">
<div>
<h3 style="margin-right: 0PX; margin-left: 30px; font-size:20px;"><?php echo __l('User Define Group') ?></h3>
</div>
<div class="firsttable">
<div class="top-button">
//dialog link
<?php echo $this->Manager->hlink('Add Group', array('action' => 'add_define_group'), array('class' => 'view_dialog')); ?>
<?php echo $this->Manager->link('Add Group',array('action'=>'add_define_group')) ?>
</div>
</div>
<div>
<h3 style="margin-right: 0PX; margin-left: 30px; font-size:20px;"><?php echo __l('Mailing Group') ?></h3>
</div>
<div class="firsttable">
<div class="top-button">
<?php echo $this->Manager->link('Add Group',array('contoller'=>'ContactGroups','action'=>'add_define_group','mailing')) ?>
</div>
</div>
<div>
<h3 style="margin-right: 0PX; margin-left: 30px; font-size:20px;"><?php echo __l('Dynamic Group') ?></h3>
</div>
<div class="firsttable">
<div class="top-button">
<?php echo $this->Manager->link('Add Group',array('contoller'=>'ContactGroups','action'=>'add_define_dynamic_group')) ?>
</div>
</div>
<div id="view_dialog"></div>
</div>
<?php v_end();?>
基本上我试图在手风琴中打开对话框,对话框将保存数据并重定向它,但它没有保存任何数据并且没有重定向,我该怎么办?任何机构的帮助将不胜感激,在此先感谢。