linea21-modules
[
class tree: linea21-modules
] [
index: linea21-modules
] [
all elements
]
changeLog
Readme.fr.txt
Packages:
linea21-core
linea21-externals
linea21-languages
linea21-modules
linea21-utils
Source for file sup.php
Documentation is available at
sup.php
<?php
/**
*
@package
linea21.modules
*
@subpackage
dashboard
*
@author
linea21 <info@linea21.com>
*
@version
$id SVN
*
@access
public
*
@license
http://opensource.org/licenses/gpl-3.0.html
*/
//////////// Check Inclusion de pages ////////////
if
(
!
function_exists
(
'AuthenthificationProcess'
))
{
include_once
(
"../lib/lib_common.php"
)
;
ReloadIndex
(
'admin'
)
;
}
////////////
include_once
(
"../lib/lib_common.php"
)
;
$link_det
=
$rub_link
.
"&todo=det&id="
;
$link_det2
=
$rub_link
.
"&todo=det&id="
;
//$link_sup=$rub_link."&todo=sup&id=";
//$link_mod=$rub_link."&todo=mod&id=";
if
(
!
isset
(
$_GET
[
'value_id'
]
)
&&
!
isset
(
$_POST
[
'value_id'
]
))
{
$value_id
=
1
;
}
else
{
if
(
isset
(
$_POST
[
'value_id'
]
))
$value_id
=
$_POST
[
'value_id'
]
;
if
(
isset
(
$_GET
[
'value_id'
]
))
$value_id
=
$_GET
[
'value_id'
]
;
}
if
(
!
isset
(
$_GET
[
'id'
]
)
&&
!
isset
(
$_POST
[
'id'
]
))
{
$id
=
1
;
}
else
{
if
(
isset
(
$_POST
[
'id'
]
))
$id
=
$_POST
[
'id'
]
;
if
(
isset
(
$_GET
[
'id'
]
))
$id
=
$_GET
[
'id'
]
;
}
if
(
!
isset
(
$_GET
[
'scale_id'
]
)
&&
!
isset
(
$_POST
[
'scale_id'
]
))
{
$scale_id
=
1
;
}
else
{
if
(
isset
(
$_POST
[
'scale_id'
]
))
$scale_id
=
$_POST
[
'scale_id'
]
;
if
(
isset
(
$_GET
[
'id'
]
))
$scale_id
=
$_GET
[
'scale_id'
]
;
}
if
(
isset
(
$_POST
[
'annuler'
]
))
{
header
(
"Location: "
.
$link_det2
.
$_POST
[
'id'
]
.
"&scale_id="
.
$scale_id
)
;
}
if
(
isset
(
$_POST
[
'valider'
]
))
{
$value_id
=
$_POST
[
'value_id'
]
;
$sdi_object
=
new
sdi
;
$link_confirm
=
"confirm.php?rub="
.
$rub
.
"&todo="
.
$todo
.
"&id="
.
$id
.
"&scale_id="
.
$scale_id
;
$result
=
$sdi_object
->
DeleteValue
(
$value_id
,
$sql_object
)
;
if
(
$result
)
header
(
"Location: "
.
$link_confirm
)
;
else
system_error
(
)
;
}
$req_sdii
=
SQL_getInfoSdi
(
$id
)
;
$data_sdii
=
$sql_object
->
DBSelect
(
$req_sdii
)
;
$display_title
=
stripslashes
(
$data_sdii
[
0
]
[
'sdii_name'
]
)
;
?>
<div id="chemin">
<ul>
<li>
<a href="index.php">
<?php
echo
$GLOBALS
[
'lang'
]
[
'way'
]
[
'home'
]
;
?>
</a>
</li>
<li>
<a href="
<?php
echo
$rub_link
;
?>
">
<?php
echo
$GLOBALS
[
'lang'
]
[
'menu'
]
[
'sdi'
]
;
?>
</a>
</li>
<li>
<span>
<?php
echo
$GLOBALS
[
'lang'
]
[
'dashboard'
]
[
'sup'
]
.
' '
.
$display_title
;
?>
</span>
</li>
</ul>
</div>
<!--end barre haute -->
<?php
include_once
(
"quickicons.php"
)
;
?>
<div class="contentcontainer">
<?php
include_once
(
$dir
.
"/menurub.php"
)
;
?>
<div id="content">
<?php
if
(
isset
(
$integrity
)
&&
is_string
(
$integrity
))
display_errors
(
$integrity
)
;
?>
<h2>
<?
echo
$GLOBALS
[
'lang'
]
[
'dashboard'
]
[
'sup'
]
;
?>
:
<?
echo
$display_title
;
?>
</h2>
<form id="supvalue" action="
<?php
echo
$_SERVER
[
'SCRIPT_NAME'
]
;
?>
" method="post">
<div class="info" id="truetransfert1">
<?
echo
$GLOBALS
[
'lang'
]
[
'dashboard'
]
[
'sup_value_warning'
]
;
?>
</div>
<div>
<input name="id" type="hidden" value="
<?php
echo
$id
;
?>
" />
<input name="scale_id" type="hidden" value="
<?php
echo
$scale_id
;
?>
" />
<input name="value_id" type="hidden" value="
<?php
echo
$value_id
;
?>
" />
<input name="rub" type="hidden" value="
<?php
echo
$rub
;
?>
" id="rub" />
<input name="todo" type="hidden" value="
<?php
echo
$todo
;
?>
" id="todo" />
<input name="annuler" type="submit" value="
<?
echo
$GLOBALS
[
'lang'
]
[
'btn'
]
[
'annul'
]
?>
" class="button" id="annuler" />
<input name="valider" type="submit" value="
<?
echo
$GLOBALS
[
'lang'
]
[
'btn'
]
[
'valid'
]
?>
" class="button" id="valider" />
</div>
</form>
<br />
</div>
<?php
include_once
(
$dir
.
"/help.php"
)
;
?>
</div>
Documentation generated on Sat, 08 Nov 2008 14:54:26 +0100 by
phpDocumentor 1.4.1