Beispiel #1
0
 function export_stock_summary_list_form()
 {
     echo '<form style="display:inline"  method="GET" action="export.php">';
     echo HtmlInput::get_to_hidden(array("gDossier", "state_exercice"));
     echo HtmlInput::hidden('act', 'CSV:StockResmList');
     echo HtmlInput::submit('stockresm', 'Export CSV');
     echo '</form>';
 }
        $p_post = null;
        if (isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '') {
            $op->set_od_id($_REQUEST['pre_def']);
            $p_post = $op->compute_array();
        }
    }
}
$p_msg = isset($p_msg) ? $p_msg : "";
print '<p class="notice">' . $p_msg . '</p>';
echo '<form method="post"  class="print">';
echo dossier::hidden();
echo HtmlInput::request_to_hidden(array('ac'));
echo $ledger->input($p_post);
echo '<div style="position:absolute;width:40%;right:20px">';
echo '<table class="info_op">' . '<tr>' . td(_('Débit')) . '<td id="totalDeb"></td>' . td(_('Crédit')) . ' <td id="totalCred"></td>' . td(_('Difference')) . ' <td id="totalDiff"></td>';
echo '</table>';
echo '</div>';
$iconcerned = new IConcerned('jrn_concerned');
$iconcerned->amount_id = "totalDeb";
echo "Opération rapprochée : " . $iconcerned->input();
echo '<p>';
echo HtmlInput::button('add', _('Ajout d\'une ligne'), 'onClick="quick_writing_add_row()"');
echo HtmlInput::submit('summary', _('Sauvez'));
echo '</p>';
echo '</form>';
echo "<script>checkTotalDirect();</script>";
echo create_script(" update_name()");
if ($g_parameter->MY_DATE_SUGGEST == 'Y') {
    echo create_script(" get_last_date()");
}
echo '</div>';
Beispiel #3
0
    // Count nb of line
    $max_line = $cn->count_sql($sql);
    list($count, $a) = $ledger->list_operation($sql, $offset, 0);
    $bar = navigation_bar($offset, $max_line, $step, $page);
    echo $bar;
    echo $a;
    echo $bar;
    /*
     * Export to csv
     */
    $r = HtmlInput::get_to_hidden(array('l', 'date_start', 'date_end', 'desc', 'amount_min', 'amount_max', 'qcode', 'accounting', 'unpaid', 'gDossier', 'ledger_type'));
    if (isset($_GET['r_jrn'])) {
        foreach ($_GET['r_jrn'] as $k => $v) {
            $r .= HtmlInput::hidden('r_jrn[' . $k . ']', $v);
        }
    }
    echo '<form action="export.php" method="get">';
    echo $r;
    echo HtmlInput::hidden('act', 'CSV:histo');
    echo HtmlInput::submit('viewsearch', _('Export vers CSV'));
    echo HtmlInput::hidden('p_action', 'ALL');
    ?>
    <input type="button" class="smallbutton" onclick="window.close()" value="<?php 
    echo _('Fermer');
    ?>
">

<?php 
    echo '</form>';
}
echo '</div>';
 </td>
			</tr>
			<tr>
				<td> <?php 
echo _("Montant inférieur ou égal à");
?>
  </td>
				<td> <?php 
echo $wamount_end->input();
?>
 </td>
			</tr>

			<tr>
				<td> <?php 
echo _("Direction");
?>
 </td>
				<td> <?php 
echo $wdirection->input();
?>
 </td>
			</tr>
		</table>
		<?php 
echo HtmlInput::submit("search_histo_b", _("Recherche"));
?>
	</form>
</div>

        $last--;
    }
}
echo $last;
?>
</td>
</tr>
<tr>
<td>
<?php 
echo _("Redémarrer la séquence (laisser à 0 pour ne pas changer)");
?>
</td>
<td>
<?php 
$pj = new INum('seq');
$pj->value = 0;
echo $pj->input();
?>
</td>
</tr>

</table>
<?php 
echo HtmlInput::hidden('p_action', 'document');
echo dossier::hidden();
echo HtmlInput::hidden('sa', 'mod_template');
echo HtmlInput::hidden('id', $doc->md_id);
echo HtmlInput::submit("mod", _('Sauver'));
?>
</form>
$name->size = 60;
echo "Nom =" . $name->input();
$opd_description = new ITextarea('od_description');
$opd_description->style = ' class="itextarea" style="width:30em;height:4em;vertical-align:top"';
$opd_description->value = $op->od_description;
echo '<p>';
echo _("Description (max 50 car.)");
echo $opd_description->input();
echo '</p>';
echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']);
echo "<hr>";
//////////////////////////////////////////////////////////////////////////////
// Detail operation
//////////////////////////////////////////////////////////////////////////////
echo $op->display();
echo HtmlInput::submit('save', _('Sauve'));
echo HtmlInput::button('close', _('Annuler'), 'onclick="removeDiv(\'mod_predf_op\')"');
echo '</form>';
$html1 = ob_get_contents();
ob_end_clean();
$html = escape_xml($html1);
if (headers_sent()) {
    echo $html1;
} else {
    header('Content-type: text/xml; charset=UTF-8');
}
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>mod_predf_op</ctl>
<code>{$html}</code>
Beispiel #7
0
        echo '<a style="display:inline" class="smallbutton" href="do.php?' . $href . '">' . _('Retour') . '</a>';
        echo '</form>';
        echo '</div>';
        echo '</div>';
        return;
    } catch (Exception $e) {
        echo "<div class=\"error\"><p>" . _("Erreur") . " : " . $e->getMessage() . '</p><p>' . _('Vous devez corriger') . '</p></div>';
        $anc = new Anticipation($cn, $_GET['f_id']);
        echo '<div class="content">';
        /* display a blank form for name and category */
        echo '<form method="post" action="?">';
        echo dossier::hidden();
        echo HtmlInput::hidden('sa', 'mod');
        echo HtmlInput::hidden('ac', $_REQUEST['ac']);
        echo $anc->form_cat();
        echo HtmlInput::submit('mod_cat_save', _('Sauver'));
        echo '</form>';
        echo '</div>';
    }
}
/* * ********************************************************************
 * Display menu
 *
 *
 * ******************************************************************** */
// display button add and list of forecast to display
if ($sa == 'list') {
    $aForecast = Forecast::load_all($cn);
    $menu = array();
    $get_dossier = dossier::get();
    echo '<div class="content">';
 function show_button($p_string = "")
 {
     $r = "";
     $r .= '<form method="GET" action="export.php" style="display:inline">';
     $r .= $p_string;
     $r .= HtmlInput::hidden("to", $this->to);
     $r .= HtmlInput::hidden("act", "PDF:AncBalDouble");
     $r .= HtmlInput::hidden("from", $this->from);
     $r .= HtmlInput::hidden("pa_id", $this->pa_id);
     $r .= HtmlInput::hidden("from_poste", $this->from_poste);
     $r .= HtmlInput::hidden("to_poste", $this->to_poste);
     $r .= HtmlInput::hidden("pa_id2", $this->pa_id2);
     $r .= HtmlInput::hidden("from_poste2", $this->from_poste2);
     $r .= HtmlInput::hidden("to_poste2", $this->to_poste2);
     $r .= dossier::hidden();
     $r .= HtmlInput::submit('bt_pdf', "Export en PDF");
     $r .= '</form>';
     $r .= '<form method="GET" action="export.php"  style="display:inline">';
     $r .= HtmlInput::hidden("to", $this->to);
     $r .= HtmlInput::hidden("act", "CSV:AncBalDouble");
     $r .= HtmlInput::hidden("from", $this->from);
     $r .= HtmlInput::hidden("pa_id", $this->pa_id);
     $r .= HtmlInput::hidden("from_poste", $this->from_poste);
     $r .= HtmlInput::hidden("to_poste", $this->to_poste);
     $r .= HtmlInput::hidden("pa_id2", $this->pa_id2);
     $r .= HtmlInput::hidden("from_poste2", $this->from_poste2);
     $r .= HtmlInput::hidden("to_poste2", $this->to_poste2);
     $r .= $p_string;
     $r .= dossier::hidden();
     $r .= HtmlInput::submit('bt_csv', "Export en CSV");
     $r .= '</form>';
     return $r;
 }
    /*
     * save via javascript and don't reload page
     */
} else {
    ?>
    <form id="tag_detail_frm" method="POST" onsubmit="return save_tag();">
<?php 
}
?>
        
    <?php 
echo dossier::hidden();
echo HtmlInput::hidden('t_id', $_GET['tag']);
echo HtmlInput::hidden('ac', $_GET['ac']);
$data = $tag->data;
require_once 'template/tag_detail.php';
echo HtmlInput::submit("save_tag_sb", "Valider");
?>
</form>
<?php 
$response = ob_get_clean();
$html = escape_xml($response);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl></ctl>
<code>{$html}</code>
</data>
EOF;
exit;
echo td(_('Depuis le poste')) . td($from_poste->input());
echo '</tr>';
echo '<tr>';
echo td(_("Jusqu'au poste")) . td($to_poste->input());
echo '</tr>';
echo '<tr>';
echo td(_('Uniquement les opérations non lettrées'));
echo td($letter->input());
echo '</tr>';
echo '<tr>';
echo td(_('Uniquement les comptes non soldés'));
echo td($solded->input());
echo '</tr>';
//
echo '</TABLE>';
print HtmlInput::submit('bt_html', _('Visualisation'));
echo '</FORM>';
echo '<hr>';
echo '</div>';
//-----------------------------------------------------
// If print is asked
// First time in html
// after in pdf or cvs
//-----------------------------------------------------
if (isset($_REQUEST['bt_html'])) {
    require_once NOALYSS_INCLUDE . '/class_acc_account_ledger.php';
    echo '<div class="content">';
    echo Acc_Account_Ledger::HtmlTableHeader("gl_comptes");
    echo '</div>';
    $sql = 'select pcm_val from tmp_pcmn ';
    $cond_poste = '';
Beispiel #11
0
 function input_new()
 {
     $single = new Tool_Uos("dup");
     echo '<form method="post" style="display:inline">';
     echo $single->hidden();
     echo HtmlInput::hidden("p_action", "fiche");
     echo dossier::hidden();
     echo $this->input();
     //    CreateCategory($cn,$search);
     echo HtmlInput::submit("add_modele", _("Sauve"));
     echo '</FORM>';
 }
Beispiel #12
0
    $rapport = new Acc_Report($cn);
    $aRapport = $rapport->make_array();
    $aRapport[] = array("value" => 0, "label" => _('Aucun mini rapport'));
    $wRapport = new ISelect();
    $wRapport->name = "minirap";
    $wRapport->selected = $g_user->get_mini_report();
    $wRapport->value = $aRapport;
    echo $wRapport->input();
    echo '<span class="notice">' . _('Le mini rapport est un rapport qui s\'affiche  sur votre page d\'accueil') . '</span>';
    echo '</fieldset>';
}
echo '<fieldset  style="margin: 1%">';
echo '<legend>' . _('Langue') . '</legend>';
echo _('Selectionnez votre langue');
$aLang = array(array(_('Français'), 'fr_FR.utf8'), array(_('Anglais'), 'en_US.utf8'), array(_('Néerlandais'), 'nl_NL.utf8'));
echo '<select name="lang" id="l">';
for ($i = 0; $i < count($aLang); $i++) {
    $sel = "";
    if ($aLang[$i][1] == $_SESSION['g_lang']) {
        $sel = " selected ";
    }
    printf('<option value="%s" %s>%s</option>', $aLang[$i][1], $sel, $aLang[$i][0]);
}
echo '</select>';
echo '</fieldset>';
echo '<p style="text-align:center">';
echo HtmlInput::button_close('preference_div');
echo HtmlInput::submit("set_preference", _("Valider"));
echo '</p>';
echo '</form>';
echo "</DIV>";
Beispiel #13
0
echo '<li>' . $radio->input() . _('Opérations rapprochées avec des montants identiques') . '</li>';
$radio->selected = $choice == 3 ? true : false;
$radio->value = 3;
echo '<li>' . $radio->input() . _('Opérations non rapprochées') . '</li>';
echo '</ol>';
echo HtmlInput::submit('vis', _('Visualisation'));
echo '</form>';
echo '<hr>';
echo '</div>';
echo '</div>';
echo '<div class="content">';
if (!isset($_GET['vis'])) {
    return;
}
$acc_reconciliation = new Acc_Reconciliation($cn);
$acc_reconciliation->a_jrn = $r_jrn;
$acc_reconciliation->start_day = $dstart->value;
$acc_reconciliation->end_day = $dend->value;
$array = $acc_reconciliation->get_data($choice);
$gDossier = Dossier::id();
?>
<form method="get" action="export.php">
    <?php 
echo HtmlInput::get_to_hidden(array('ac', 'gDossier', 'p_end', 'p_start', 'choice', 'r_jrn'));
echo HtmlInput::hidden('act', 'CSV:Reconciliation');
echo HtmlInput::submit("csv_bt", "Export CSV");
?>
</form>
<?php 
require_once NOALYSS_INCLUDE . '/template/impress_reconciliation.php';
return;
 /**
  * return the html code to create an hidden div and a button
  * to show this DIV. This contains all the available ledgers
  * for the user in READ or RW
  *@param $selected is an array of checkbox
  *@param $div div suffix
  *@note the choosen ledger are stored in the array r_jrn (_GET)
  */
 static function select_ledger($p_type, $p_selected, $div = '')
 {
     global $g_user;
     $r = '';
     /* security : filter ledger on user */
     $p_array = $g_user->get_ledger($p_type, 3);
     ob_start();
     /* create a hidden div for the ledger */
     echo '<div id="div_jrn' . $div . '" >';
     echo HtmlInput::title_box(_("Journaux"), $div . "jrn_search");
     echo '<div style="padding:5px">';
     echo '<form method="GET" id="' . $div . 'search_frm" onsubmit="return hide_ledger_choice(\'' . $div . 'search_frm\')">';
     echo HtmlInput::hidden('nb_jrn', count($p_array));
     echo _('Filtre ') . HtmlInput::filter_table($div . 'tb_jrn', '0,1,2', 2);
     echo '<table class="result" id="' . $div . 'tb_jrn">';
     echo '<tr>';
     echo th(_('Nom'));
     echo th(_('Description'));
     echo th(_('Type'));
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo HtmlInput::button('sel_' . $div, _('Inverser la sélection'), ' onclick = "toggle_checkbox(\'' . "{$div}search_frm" . '\')"');
     echo '</td>';
     echo '</tr>';
     for ($e = 0; $e < count($p_array); $e++) {
         $row = $p_array[$e];
         $r = new ICheckBox($div . 'r_jrn' . $e, $row['jrn_def_id']);
         $idx = $row['jrn_def_id'];
         if ($p_selected != null && in_array($row['jrn_def_id'], $p_selected)) {
             $r->selected = true;
         }
         $class = $e % 2 == 0 ? ' class="even" ' : ' class="odd" ';
         echo '<tr ' . $class . '>';
         echo '<td style="white-space: nowrap">' . $r->input() . $row['jrn_def_name'] . '</td>';
         echo '<td >' . $row['jrn_def_description'] . '</td>';
         echo '<td >' . $row['jrn_def_type'] . '</td>';
         echo '</tr>';
     }
     echo '</table>';
     echo HtmlInput::hidden('div', $div);
     echo HtmlInput::submit('save', _('Valider'));
     echo HtmlInput::button_close($div . "jrn_search");
     echo '</form>';
     echo '</div>';
     echo '</div>';
     $ret = ob_get_contents();
     ob_end_clean();
     return $ret;
 }
Beispiel #15
0
        echo $dom->saveXML();
        return;
    }
    if ($g_user->check_action(SHARENOTE) == 0) {
        header('Content-type: text/xml; charset=UTF-8');
        $dom = new DOMDocument('1.0', 'UTF-8');
        $tl_id = $dom->createElement('content', _("Accès interdit"));
        $dom->appendChild($tl_id);
        echo $dom->saveXML();
        return;
    }
    ob_start();
    echo HtmlInput::title_box(_('Liste utilisateurs'), "shared_" . $id);
    $todo->display_user();
    echo '<p style="text-align:center">';
    echo HtmlInput::submit('close' . $id, 'Ferme', " onclick=\"\$('shared_{$id}').remove();\"");
    echo '</p>';
    $result = ob_get_clean();
    //
    // output the XML
    header('Content-type: text/xml; charset=UTF-8');
    $dom = new DOMDocument('1.0', 'UTF-8');
    $tl_id = $dom->createElement('content', escape_xml($result));
    $dom->appendChild($tl_id);
    echo $dom->saveXML();
    return;
}
////////////////////////////////////////////////////////////////////////////////
// Share the note with someone or remove it
////////////////////////////////////////////////////////////////////////////////
if ($ac == "set_share") {
Beispiel #16
0
	</script>
<form method="post">
<?php 
$wDate = new IDate('p_date_todo');
$wDate->id = 'p_date_todo';
$wTitle = new IText('p_title');
$wDesc = new ITextArea('p_desc');
$wDesc->heigh = 5;
$wDesc->width = 40;
echo HtmlInput::title_box("Note", "add_todo_list", "hide");
echo _("Date") . " " . $wDate->input() . '<br>';
echo _("Titre") . " " . $wTitle->input() . '<br>';
echo _("Description") . "<br>" . $wDesc->input() . '<br>';
echo dossier::hidden();
echo HtmlInput::hidden('tl_id', 0);
echo HtmlInput::submit('save_todo_list', _('Sauve'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"');
echo HtmlInput::button('hide', _('Annuler'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"');
?>
</form>
</div>

<script type="text/javascript" language="javascript" charset="utf-8">
function display_detail(div) {
	$(div).style.display="block";
       // $(div).style.top=calcy('150')+'px';
	//Effect.Grow(div,{});
}
try {
var array=Array('customer_now_div','customer_late_div','supplier_now_div','supplier_late_div','action_now_div','action_late_div');
var i=0;
for  (i=0;i < array.length;i++) {
Beispiel #17
0
    //echo $w->input($sa,'sa');
    echo "</form>";
    echo "</TD>";
    echo '</TR>';
}
echo "</table>";
// modify input
if (isset($_POST['mod'])) {
    extract($_POST);
    echo '<div style="float:left;padding:2%">';
    echo _("Voulez-vous modifier ?");
    echo "<br><font color=\"red\"> ";
    echo _("Attention, ne changer pas la signification de ce poste.");
    echo hi(_("par exemple ne pas changer Client par fournisseur")) . "<br>";
    echo _("sinon le programme fonctionnera mal, " . "utiliser uniquement des chiffres pour la classe de base ou rien") . "</font>";
    $mod = new Fiche_Def_Ref($cn);
    $mod->frd_id = $idx;
    $mod->Get();
    echo '<form method="post">';
    echo '<ul style="list-style-type:none"';
    echo $mod->Input();
    echo "</ul>";
    $w = new IHidden();
    echo $w->input('ac', $_REQUEST['ac']);
    //    echo $w->input('sa',$sa);
    echo HtmlInput::submit('confirm_mod', 'Confirme');
    echo HtmlInput::submit('no', 'Cancel');
    echo '</form>';
    echo '</div>';
}
echo '</div>';
$gDossier = dossier::id();
$default_exercice = $g_user->get_exercice();
$p_exercice = HtmlInput::default_value_get("p_exercice", $default_exercice);
$a_change = $cn->get_array("select *,to_char(c_date,'DD.MM.YY') as str_date from stock_change as sc\n\t\t\tjoin stock_repository as sr on (sc.r_id=sr.r_id)\n\t\t\twhere sc.r_id in (select r_id from profile_sec_repository where p_id=\$1)\n                         and c_date >= (select min(p_start) from parm_periode where p_exercice = \$2)\n                        and c_date <= (select max(p_end) from parm_periode where p_exercice = \$2)\n\t\torder by c_date", array($profile, $p_exercice));
$exercice = new Exercice($cn);
?>
<div class="content">
    <form method="get" class="print">
      <?php 
echo HtmlInput::get_to_hidden(array('gDossier', 'ac'));
?>
      <?php 
echo $exercice->select('p_exercice', $p_exercice)->input();
?>
      <?php 
echo HtmlInput::submit("filter", _('Valider'));
?>
    </form>
<table class="result">
	<tr>

		<th>
			<?php 
echo _('Date');
?>
		</th>
		<th>
			<?php 
echo _('Commentaire');
?>
		</th>
Beispiel #19
0
 static function test_me()
 {
     if (isset($_GET['result'])) {
         ob_start();
         $cn = new Database(dossier::id());
         $a = new Acc_Bilan($cn);
         $a->get_request_get();
         $a->load();
         $form = $a->file_open_form();
         $a->compute_formula($form);
         fclose($form);
         // open the form
         $templ = $a->file_open_template();
         $r = $a->generate_odt($templ);
         fclose($templ);
         ob_end_clean();
         $a->send($r);
     } else {
         $cn = new Database(dossier::id());
         $a = new Acc_Bilan($cn);
         $a->get_request_get();
         echo '<form method="get">';
         echo $a->display_form();
         echo HtmlInput::hidden('test_select', $_GET['test_select']) . dossier::hidden();
         echo HtmlInput::submit('result', 'Sauve');
         echo '</form>';
     }
 }
Beispiel #20
0
}
/*************************************************************************************************************************
 * Balance en-cours
/*************************************************************************************************************************/
if ($_GET['histo'] == 7) {
    require_once NOALYSS_INCLUDE . '/class_balance_age.php';
    $bal = new Balance_Age($cn);
    $export_csv = '<FORM METHOD="get" ACTION="export.php" style="display:inline">';
    $export_csv .= HtmlInput::request_to_hidden(array('gDossier', 'ac', 'p_let', 'p_date_start'));
    $export_csv .= HtmlInput::hidden('p_date_start', $_GET['start']);
    $export_csv .= HtmlInput::hidden('act', 'CSV:balance_age');
    $export_csv .= HtmlInput::hidden('p_let', 'unlet');
    $export_csv .= HtmlInput::hidden('p_type', 'X');
    $export_csv .= HtmlInput::hidden('cat', $_GET['cat']);
    $export_csv .= HtmlInput::hidden('all', $allcard);
    $export_csv .= HtmlInput::submit('csv', _('Export CSV'));
    $export_csv .= '</FORM><p></p>';
    if ($allcard == 0) {
        echo $export_csv;
        $bal->display_category($_GET['start'], $_GET['cat'], 'unlet');
        echo $export_csv;
    } else {
        echo $export_csv;
        $a_cat = $cn->get_array("select fd_id from vw_fiche_def where ad_id=" . ATTR_DEF_ACCOUNT . " order by fd_label asc");
        $nb_cat = count($a_cat);
        for ($i = 0; $i < $nb_cat; $i++) {
            $bal->display_category($_GET['start'], $a_cat[$i]['fd_id'], 'unlet');
        }
        echo $export_csv;
    }
    return;
Beispiel #21
0
    $a->get_from_array($_POST);
    $a->save();
    echo $a->show();
    echo '</div>';
    return;
}
if (isset($_GET['new'])) {
    //show the form for entering a new Anc_Operation
    //------------------------------------------
    $a = new Anc_Group_Operation($cn);
    $wSubmit = new IHidden("p_action", "ca_od");
    $wSubmit->table = 0;
    echo '<div class="redcontent"  >';
    echo '<form method="post">';
    echo dossier::hidden();
    echo $wSubmit->input();
    echo $a->form();
    echo HtmlInput::submit("save", _("Sauver"));
    echo '</form>';
    echo '<div class="info">';
    echo _('Débit') . ' = <span id="totalDeb"></span>';
    echo _('Crédit') . ' = <span id="totalCred"></span>';
    echo _('Difference') . ' = <span id="totalDiff"></span>
    </div>
    ';
    echo '</div>';
    return;
}
?>
<div class="redcontent">
Beispiel #22
0
        }
        echo "<TD class=\"num\"> {$l_line['jrn_def_name']} </TD>";
        $jrn_priv->name = 'jrn_act' . $l_line['jrn_def_id'];
        $jrn_priv->value = $array;
        if ($admin != 1) {
            $jrn_priv->selected = $sec_User->get_ledger_access($l_line['jrn_def_id']);
        } else {
            $jrn_priv->selected = 'W';
        }
        echo '<td>';
        echo $jrn_priv->input();
        echo '</td>';
        echo '</tr>';
    }
    echo '</table>';
    echo '</fieldset>';
    //**********************************************************************
    // Show Priv. for actions
    //**********************************************************************
    echo '<fieldset> <legend>Actions </legend>';
    include 'template/security_list_action.php';
    echo '</fieldset>';
    echo HtmlInput::button('Imprime', 'imprime', "onclick=\"window.open('" . $sHref . "');\"");
    echo HtmlInput::submit('ok', 'Sauve');
    echo HtmlInput::reset('Annule');
    echo $return;
    echo '</form>';
}
// end of the form
echo "</DIV>";
html_page_stop();
    $sub_action = "list";
    $cn->commit();
    Follow_Up::show_action_list($cn, $base);
    if (isset($act->ag_ref)) {
        echo hb(_('Action ') . $act->ag_ref . _(' effacée'));
    }
    return;
}
//--------------------------------------------------------------------------------
// Show a list of the action
if ($sub_action == "list") {
    // Add a button to export to Csv
    echo '<form method="GET" style="display:inline;" ACTION="export.php">';
    echo HtmlInput::request_to_hidden(array("closed_action", "remind_date_end", "remind_date", "sag_ref", "remind_date", "only_internal", "state", "gDossier", "qcode", "start_date", "end_date", "ag_id", "ag_dest_query", "tdoc", "action_query", "date_start", "date_end", "hsstate", "searchtag"));
    echo HtmlInput::hidden("act", "CSV:ActionGestion");
    echo HtmlInput::submit("follow_up_csv", "Export CSV", '', 'smallbutton');
    echo "</form>";
    Follow_Up::show_action_list($cn, $base);
}
//--------------------------------------------------------------------------------
// Save Follow_Up
// Stage 2 : Save a NEW action + Files and generate eventually a document
//--------------------------------------------------------------------------------
if ($sub_action == "save_action_st2") {
    $act = new Follow_Up($cn);
    $act->fromArray($_POST);
    try {
        $act->d_id = 0;
        $act->md_id = isset($_POST['gen_doc']) ? $_POST['gen_doc'] : 0;
        $act->verify();
        // insert into action_gestion
Beispiel #24
0
 * @brief 
 * @param type $name Descriptionara
 */
echo HtmlInput::title_box("Poste comptable", "acc_update", "hide");
?>
<span id="acc_update_info" class="notice"></span>
<form method="post" id="acc_update_frm_id" onsubmit="pcmn_save();return false;">

<table style="width:100%">
<?php 
$r = td(_('Poste comptable'), 'style="width:20em;width:15rem;text-align:right"') . td($val->input());
echo tr($r);
$r = td(_('Description'), 'style="width:auto;text-align:right"') . td($lib->input());
echo tr($r);
$r = td(_('Parent'), 'style="width:auto;text-align:right"') . td($parent->input());
echo tr($r);
$r = td(_('Type'), 'style="width:auto;text-align:right"') . td($type->input());
echo tr($r);
?>
</table>
<?php 
echo HtmlInput::hidden('p_oldu', $pcmn_val);
echo HtmlInput::hidden('p_action', $action);
echo dossier::hidden();
$checkbox = new ICheckBox("delete_acc");
echo _('Cocher pour effacer') . " " . $checkbox->input();
echo '<hr>';
echo HtmlInput::submit('update', _('Sauve'));
echo HtmlInput::button('hide', _('Annuler'), 'onClick="$(\'acc_update\').hide();return true;"');
?>
</form>
Beispiel #25
0
</TD><TD><INPUT class="input_text" TYPE="TEXT" NAME="FNAME"></TD></tr>
       <TR><TD style="text-align: right"> <?php 
echo _('Nom');
?>
</TD><TD><INPUT class="input_text"  TYPE="TEXT" NAME="LNAME"></TD></TR>
       <TR><TD style="text-align: right"> <?php 
echo _('Mot de passe');
?>
</TD><TD> <INPUT id="input_password" class="input_text" TYPE="TEXT" NAME="PASS"></TD></TR>
       <TR><TD style="text-align: right"> <?php 
echo _('Email');
?>
</TD><TD> <INPUT class="input_text" TYPE="TEXT" NAME="EMAIL"></TD></TR>
</TABLE>
<?php 
echo HtmlInput::submit("ADD", _('Créer Utilisateur'));
echo HtmlInput::button_action(_("Fermer"), "\$('create_user').style.display='none';");
?>
</div>
</FORM>
    <script>
        function check_form() {
            if ($F('input_login') == "") { 
                    alert('<?php 
echo _('Le login ne peut être vide');
?>
');
                    $('input_login').setStyle({border:"red solid 2px"});
                    return false;
                }
            if ($F('input_password') == "") { 
		</td>
		<td>
			<?php 
    echo h($a_row[$i]['ag_ref']);
    ?>
		</td>
		<td>
			<?php 
    echo h($a_row[$i]['sub_ag_title']);
    ?>
		</td>
		<td>
			<?php 
    echo h($a_row[$i]['name']);
    ?>
		</td>
		<td>
			<?php 
    echo h($a_row[$i]['dt_value']);
    ?>
		</td>
	</tr>

<?php 
}
?>
</table>
	<?php 
echo HtmlInput::submit("save_action", _("Mettre à jour"));
?>
</form>
 static function test_me()
 {
     $cn = new Database(dossier::id());
     $a = new Acc_Report($cn);
     print_r($a->get_list());
     $array = array("text0" => "test1", "form0" => "7%", "text1" => "test2", "form1" => "6%", "fr_id" => 110, "form_nom" => "Tableau");
     $a->from_array($array);
     print_r($a);
     echo '<form method="post">';
     echo $a->form(10);
     echo HtmlInput::submit('update', 'Enregistre');
     /* Add a line should be a javascript see comptanalytic */
     //  $r.= '<INPUT TYPE="submit" value="Ajoute une ligne" name="add_line">';
     echo HtmlInput::submit('del_form', 'Efface ce rapport');
     echo HtmlInput::hidden('test_select', $_REQUEST['test_select']);
     echo "</FORM>";
     if (isset($_POST['update'])) {
         $b = new Acc_Report($cn);
         $b->from_array($_POST);
         echo '<hr>';
         print_r($b);
     }
 }
Beispiel #28
0
			<tr>
				<td>
					Pays
				</td>
				<td>
					<?php 
$name = new IText("r_country", "");
echo $name->input();
?>
				</td>
			</tr>
			<tr>
				<td>
					Téléphone
				</td>
				<td>
					<?php 
$name = new IText("r_phone", "");
echo $name->input();
?>
				</td>
			</tr>

		</table>
		<?php 
echo HtmlInput::submit("add_stock", "Sauver");
?>
	</form>
	</div>
</div>
    $per = new Periode($cn, $obj->det->jr_tech_per);
    if ($per->is_closed() == 0 && $owner->MY_STRICT == 'N' && $g_user->check_action(RMOPER) == 1) {
        $remove = new IButton('Effacer');
        $remove->label = _('Effacer');
        $remove->javascript = "return confirm_box(null,'Vous confirmez effacement ?',function () {removeOperation('" . $obj->det->jr_id . "'," . dossier::id() . ",'" . $div . "')})";
        echo $remove->input();
    }
    $reverse = new IButton('bext' . $div);
    $reverse->label = _('Extourner');
    $reverse->javascript = "g('ext" . $div . "').style.display='block'";
    echo $reverse->input();
    echo '</p>';
    echo '</form>';
    echo '<div id="ext' . $div . '" class="inner_box" style="position:relative;top:-150px;display:none">';
    $date = new IDate('ext_date');
    $r = "<form id=\"form_" . $div . "\" onsubmit=\"return false;\">";
    $r .= HtmlInput::hidden('jr_id', $_REQUEST['jr_id']) . HtmlInput::hidden('div', $div) . dossier::hidden() . HtmlInput::hidden('act', 'reverseop');
    $r .= HtmlInput::title_box(_('Extourner'), 'ext' . $div, 'hide');
    $r .= "<p>";
    $r .= _("Extourner une opération vous permet de l'annuler par son écriture inverse");
    $r .= "</p>";
    $r .= _("entrez une date") . " :" . $date->input();
    $r .= '<p  style="text-align:center">';
    $r .= HtmlInput::submit('x', 'accepter', 'onclick="confirm_box($(\'form_' . $div . '\'),\'Vous confirmez  ? \',function () {$(\'form_' . $div . '\').divname=\'' . $div . '\';reverseOperation($(\'form_' . $div . '\'))}); return false"');
    $r .= "</p>";
    $r .= '</form>';
    echo $r;
    echo '</div>';
} else {
    echo '</p>';
}
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with NOALYSS; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
// Copyright Author Dany De Bontridder danydb@aevalys.eu
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_default_menu.php';
global $cn, $g_failed, $g_succeed;
$a_default = new Default_Menu();
if (isset($_POST['save_menu_default'])) {
    $a_default->set('code_follow', $_POST['code_follow']);
    $a_default->set('code_invoice', $_POST['code_invoice']);
    try {
        $a_default->save();
        echo h2("Sauvé", 'class="notice"', $g_succeed);
    } catch (Exception $ex) {
        echo h2("Code menu invalide", 'class="notice"', $g_failed);
    }
}
echo '<form method="POST">';
echo HtmlInput::hidden('ac', $_REQUEST['ac']);
echo Dossier::hidden();
$a_default->input_value();
echo HtmlInput::submit('save_menu_default', _("Sauver"));
echo '</form>';