die('Appel direct ne sont pas permis');
}
$profile = $cn->get_value("select p_id from profile_menu where pm_id=\$1", array($pm_id));
$a_value = $cn->make_array("select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref", 0);
$array = $cn->get_array("select p_id,pm_id,me_code,me_code_dep,p_order,p_type_display,pm_default\n\tfrom profile_menu\n\twhere pm_id=\$1", array($pm_id));
if (empty($array)) {
    alert("Code invalide");
    exit;
}
echo HtmlInput::title_box($array[0]['me_code'], 'divdm' . $pm_id);
$me_code = new ISelect('me_code');
$me_code->value = $a_value;
$me_code->selected = $array[0]['me_code'];
$p_order = new Inum('p_order', $array[0]['p_order']);
$pm_default = new ICheckBox('pm_default', '1');
$pm_default->set_check($array[0]['pm_default']);
?>
<form method="POST" id="ajax_get_menu_detail_frm" onsubmit="return confirm_box(this,'<?php 
echo _("Vous confirmez");
?>
 ?')">
	<?php 
echo HtmlInput::hidden('pm_id', $array[0]['pm_id']);
?>
	<?php 
echo HtmlInput::hidden('p_id', $array[0]['p_id']);
?>
	<?php 
echo HtmlInput::hidden('tab', "profile_menu_div");
?>
	<?php 
示例#2
0
    echo _('Dépôts');
    ?>
</a>&nbsp;
</ul>
<?php 
}
?>

<?php 
$id = HtmlInput::hidden('p_id', $profile->p_id);
$name = new IText("p_name", $profile->p_name);
$desc = new IText("p_desc", $profile->p_desc);
$with_calc = new ICheckBox("with_calc", "t");
$with_calc->set_check($profile->with_calc);
$with_direct_form = new ICheckBox("with_direct_form", "t");
$with_direct_form->set_check($profile->with_direct_form);
// If $p_id == -1 it is a new profile
if ($p_id > 0) {
    echo '<div style="display:none" id="profile_gen_div">';
} else {
    echo '<div  class="myfieldset" id="profile_gen_div">';
}
echo '<form method="POST" id="profile_save_name_frm" onsubmit="return confirm_box(this,\'vous confirmez\')">';
echo HtmlInput::hidden('tab', 'profile_gen_div');
echo HtmlInput::hidden('p_id', $profile->p_id);
echo HtmlInput::hidden('save_name', 1);
require_once "template/profile.php";
echo HtmlInput::submit("save_namebt", _("Modifier"));
echo '</form>';
if ($profile->p_id > 0) {
    echo '<form method="POST" id="profile_clone_frm" onsubmit="return confirm_box(this,\'' . _("vous confirmez") . '\')">';
示例#3
0
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
/**
 * @brief included from Todo_List::display
 * create a html with content
 * @see Todo_List
 */
global $g_user;
$wDate = new IDate('p_date_todo', $this->tl_date);
$wTitle = new IText('p_title', $this->tl_title);
$wDesc = new ITextArea('p_desc', strip_tags($this->tl_desc));
$wDesc->heigh = 5;
$wDesc->width = 40;
$is_public = new ICheckBox('p_public');
$is_public->value = 'Y';
$is_public->set_check($this->is_public);
$dossier = Dossier::id();
$close_share = " if ( \$('shared_{$this->tl_id}') ){ \$('shared_{$this->tl_id}').remove();}";
echo HtmlInput::title_box("Note", "todo_list_div" . $this->tl_id, 'close', $close_share);
?>
<form id="todo_form_<?php 
echo $this->tl_id;
?>
" onsubmit="todo_list_save(<?php 
echo $this->tl_id;
?>
);return false">
    <table>
        <tr>
            <td>
                <?php