* * ******************************************************************** */ if ($sa == 'new') { /* Second step : we save the name and category * and propose the items we add the item */ if ($correct == 2 || isset($_POST['step2'])) { /* Propose a form for the items */ $anticip = new Anticipation($cn, $a->get_parameter("id")); echo '<div class="content">'; echo ICard::ipopup('ipopcard'); echo IPoste::ipopup('ipop_account'); $search_card = new IPopup('ipop_card'); $search_card->title = _('Recherche de fiche'); $search_card->value = ''; echo $search_card->input(); echo '<form method="post" action="?">'; echo dossier::hidden(); echo HtmlInput::hidden('sa', 'new'); echo HtmlInput::hidden('ac', $_REQUEST['ac']); echo HtmlInput::hidden('f_id', $id); echo $anticip->form_item(); echo HtmlInput::submit('step3', _('Sauver')); echo '</form>'; echo '</div>'; } /* First step, the name and the category */ if (!isset($_POST['step2']) || $correct == 1) { $anc = new Anticipation($cn); echo '<div class="content">'; /* display a blank form for name and category */
static function test_me() { require_once NOALYSS_INCLUDE . '/class_iselect.php'; $select = new ISelect('a'); $select->value = array(array('value' => 0, 'label' => 'Première valeur'), array('value' => 0, 'label' => 'Première valeur'), array('value' => 0, 'label' => 'Première valeur')); for ($e = 0; $e < 5; $e++) { echo $select->input(); if ($e % 10 == 0) { echo '<hr>'; } } $a = new IPopup('pop1'); $a->value = ""; for ($e = 0; $e < 500; $e++) { $a->value .= "<p>Il etait une fois dans un pays vraiment lointain où même plus loin que ça</p>"; } echo $a->input(); echo ' <input type="button" onclick="hide(\'pop1\');hide(\'pop1_border\')" value="cacher"> <input type="button" onclick="showIPopup(\'pop1\')" value="montrer"> '; $a = new IPopup('pop2'); $a->value = ''; $a->title = "Retrouvez une saucisse"; echo $a->input(); echo ' <input type="button" onclick="hide(\'pop2\');hide(\'pop2_border\')" value="cacher"> <input type="button" onclick="showIPopup(\'pop2\')" value="montrer"> '; }
public static function test_me() { $a = new IPopup('popup_tva'); $a->set_title('Choix de la tva'); echo $a->input(); $tva = new ITva_Popup("tva1"); $tva->with_button(true); // We can add a label for the code $tva->add_label('code'); $tva->js = 'onchange="set_tva_label(this);"'; echo $tva->input(); echo $tva->dbutton(); }
static function ipopup($p_name) { $ip = new IPopup($p_name); $ip->title = 'Plan comptable'; $ip->value = ''; $ip->set_height('80%'); $ip->set_zindex(20); return $ip->input(); }
static function ipopup($p_name) { $ip_card = new IPopup($p_name); $ip_card->drag = true; $ip_card->set_width('45%'); $ip_card->title = 'Fiche '; $ip_card->value = ''; return $ip_card->input(); }