28if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
29require_once NOALYSS_INCLUDE.
'/database/stock_sql.class.php';
35 echo
'<h2 class="notice">';
36 echo _(
"Vous n'utilisez pas de gestion de stock");
40if ( isset (
$_POST[
'add_stock']))
42 $post_name=
$http->post(
'r_name');
50if ( isset (
$_POST[
'mod_stock']))
52 $post_name=
$http->post(
'r_name');
64$tb->add(_(
"Nom"),
$p_url,
" order by r_name asc",
"order by r_name desc",
"ona",
"ond");
65$tb->add(_(
"Adresse"),
$p_url,
" order by r_adress asc",
"order by r_adress desc",
"oaa",
"oad");
66$tb->add(_(
"Ville"),
$p_url,
" order by r_city asc",
"order by r_city desc",
"ova",
"ovd");
67$tb->add(_(
"Pays"),
$p_url,
" order by r_country asc",
"order by r_country desc",
"opa",
"opd");
68$tb->add(_(
"Téléphone"),
$p_url,
" order by r_phone asc",
"order by r_phone desc",
"opa",
"opd");
70$sql=
"select * from stock_repository ";
83 <
th><?php echo
$tb->get_header(0)?></
th>
84 <
th><?php echo
$tb->get_header(1)?></
th>
85 <
th><?php echo
$tb->get_header(2)?></
th>
86 <
th><?php echo
$tb->get_header(3)?></
th>
87 <
th><?php echo
$tb->get_header(4)?></
th>
108 $js=
' onclick="stock_repo_change(\''.dossier::id().
'\',\
''.$array[
$i][
'r_id'].
'\')
"';
109 echo HtmlInput::button("mod
", _("Modifier
"), $js);
116 <?php echo HtmlInput::button("show_add_depot_d
", _("Ajout d
'un dépot"), "onclick=\"$('add_depot_d
').show();\"");?>
117 <div id="add_depot_d" class="inner_box" style="display:none">
118 <?php echo HtmlInput::title_box(_("Ajouter un dépôt"),"add_depot_d","hide")?>
126 <?php $name=new IText("r_name",""); echo $name->input();?>
134 <?php $name=new IText("r_adress",""); echo $name->input();?>
142 <?php $name=new IText("r_city",""); echo $name->input();?>
150 <?php $name=new IText("r_country",""); echo $name->input();?>
158 <?php $name=new IText("r_phone",""); echo $name->input();?>
163 <?php echo HtmlInput::submit("add_stock",_("Sauver"))?>
th($p_string, $p_extra='', $raw='')
noalyss_strlentrim($p_string)
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
h( $row[ 'oa_description'])
Description of class_syn_sort_table.
ORM abstract of the table public.stock_repository.
if($g_parameter->MY_STOCK=='N') if(isset( $_POST[ 'add_stock'])) if(isset($_POST['mod_stock'])) $tb