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');
62$p_url=HtmlInput::get_to_string(array(
"ac",
"gDossier"));
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 ";
82 <
th><?php echo
$tb->get_header(0)?></
th>
83 <
th><?php echo
$tb->get_header(1)?></
th>
84 <
th><?php echo
$tb->get_header(2)?></
th>
85 <
th><?php echo
$tb->get_header(3)?></
th>
86 <
th><?php echo
$tb->get_header(4)?></
th>
107 $js=
' onclick="stock_repo_change(\''.dossier::
id().
'\',\''.
$array[
$i][
'r_id'].
'\')"';
108 echo HtmlInput::button(
"mod",
_(
"Modifier"),
$js);
115 <?php echo HtmlInput::button(
"show_add_depot_d",
_(
"Ajout d'un dépot"),
"onclick=\"$('add_depot_d').show();\"");?>
116 <div
id=
"add_depot_d" class=
"inner_box2" style=
"display:none">
117 <?php echo HtmlInput::title_box(
_(
"Ajouter un dépôt"),
"add_depot_d",
"hide")?>
119 <div
style=
"display:flex;flex-direction: column;padding:2ch;">
154 <?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
global $g_user
if no group available , then stop
h( $row[ 'oa_description'])
_("actif, passif,charge,...")
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