svn+ssh://ns352270.ovh.net/svn/phpcompta/branches/rel600-dynamic-menu ........ r4209 | danydb | 2011-10-13 22:06:13 +0200 (Thu, 13 Oct 2011) | 1 line Add new files ........ r4229 | danydb | 2011-10-23 20:51:09 +0200 (Sun, 23 Oct 2011) | 1 line Dynamic menu: impress works ........ r4230 | danydb | 2011-10-24 22:38:15 +0200 (Mon, 24 Oct 2011) | 2 lines #241 : modularity for SALE ledger ........ r4231 | danydb | 2011-10-24 22:47:02 +0200 (Mon, 24 Oct 2011) | 2 lines #241 : modularity for PURCHASE ledger ........ r4232 | danydb | 2011-10-25 23:03:53 +0200 (Tue, 25 Oct 2011) | 2 lines #241 : modularity for FINANCIAL ledger ........ r4234 | danydb | 2011-10-26 01:09:02 +0200 (Wed, 26 Oct 2011) | 2 lines #241 : modularity for CARD ledger + alphanum prob ........ r4237 | danydb | 2011-10-27 20:59:39 +0200 (Thu, 27 Oct 2011) | 2 lines #241 : modularity for lettering ........ r4238 | danydb | 2011-10-27 21:10:19 +0200 (Thu, 27 Oct 2011) | 3 lines #241 :adapt width submenu ........ r4239 | danydb | 2011-10-27 21:40:42 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : old user_advanced.php ........ r4240 | danydb | 2011-10-27 21:44:27 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : deprecated function ........ r4241 | danydb | 2011-10-27 21:46:26 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : remove obsolete files ........ r4242 | danydb | 2011-10-27 21:54:39 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : gestion card + gestion IMP ........ r4243 | danydb | 2011-10-27 22:28:36 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : gestion customer + supplier + forecast + follow up ........ r4244 | danydb | 2011-10-28 00:47:55 +0200 (Fri, 28 Oct 2011) | 5 lines #241 : modularity : parameter company periode misc : tva , card attr, middle of payment, accounting,cat of doc, cat of card ........ r4245 | danydb | 2011-10-28 00:51:43 +0200 (Fri, 28 Oct 2011) | 1 line update menu_ref, profile_menu ........ r4246 | danydb | 2011-10-28 00:52:13 +0200 (Fri, 28 Oct 2011) | 1 line rewriting : change ShowMenuPcmn by menu_acc_plan ........ r4247 | danydb | 2011-10-28 20:04:01 +0200 (Fri, 28 Oct 2011) | 1 line #241 : modularity : parameter Document ........ r4248 | danydb | 2011-10-28 22:00:42 +0200 (Fri, 28 Oct 2011) | 1 line #241 : modularity : préférence ........ r4249 | danydb | 2011-10-28 22:16:44 +0200 (Fri, 28 Oct 2011) | 1 line last fix ........
120 lines
No EOL
2.4 KiB
PHP
120 lines
No EOL
2.4 KiB
PHP
<div style="float:right">
|
|
<A style="background-color:blue;color:white;text-decoration:none" HREF="javascript:void(0)" onclick="removeDiv('mod_doc');">Fermer</A>
|
|
</div>
|
|
<h2 class="info">Modèle de document</h2>
|
|
<form method="post" enctype="multipart/form-data">
|
|
<table>
|
|
|
|
<tr>
|
|
<td>Nom du document</td>
|
|
|
|
<td>
|
|
<?php
|
|
$a=new IText('md_name');
|
|
$a->value=$doc->md_name;
|
|
echo $a->input();
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
Catégorie de document
|
|
</td>
|
|
<td>
|
|
<?php
|
|
// Load all the category
|
|
$w=new ISelect();
|
|
$w->name="md_type";
|
|
|
|
$w->value=$cn->make_array('select dt_id,dt_value from document_type');
|
|
$w->selected=$doc->md_type;
|
|
echo $w->input();
|
|
?>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Affectation
|
|
</td>
|
|
<td>
|
|
<?php
|
|
|
|
$waffect=new ISelect();
|
|
$waffect->name='md_affect';
|
|
$waffect->value=array(
|
|
array('value'=>'ACH','label'=>_('Uniquement journaux achat')),
|
|
array('value'=>'VEN','label'=>_('Uniquement journaux vente')),
|
|
array('value'=>'GES','label'=>_('Partie gestion'))
|
|
);
|
|
$waffect->selected=$doc->md_affect;
|
|
echo $waffect->input();
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<tr>
|
|
<td>
|
|
Fichier
|
|
<?php
|
|
$s=dossier::get();
|
|
|
|
echo '<A HREF="show_document_modele.php?md_id='.$doc->md_id.'&'.$s.'">(fichier actuel)</a>';
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
$file=new IFile('doc');
|
|
echo $file->input();
|
|
|
|
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
Dernier numéro utilisé pour ce type de document
|
|
</td>
|
|
<td>
|
|
<?php
|
|
$last=0;
|
|
if ( $cn->exist_sequence("seq_doc_type_".$doc->md_type) )
|
|
{
|
|
$ret= $cn->get_array("select last_value,is_called from seq_doc_type_".$doc->md_type) ;
|
|
|
|
$last=$ret[0]['last_value'];
|
|
/*!
|
|
*\note With PSQL sequence , the last_value column is 1 when before AND after the first call, to make the difference between them
|
|
* I have to check whether the sequence has been already called or not */
|
|
if ($ret[0]['is_called']=='f' ) $last--;
|
|
}
|
|
echo $last;
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
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>
|