Remove Dead Code : IPopup and Periode
This commit is contained in:
parent
ea550bd543
commit
563427daba
5 changed files with 2 additions and 84 deletions
|
|
@ -28,17 +28,7 @@ require_once("class_acc_ledger_purchase.php");
|
|||
require_once ('class_pre_op_ach.php');
|
||||
require_once('class_ipopup.php');
|
||||
$gDossier=dossier::id();
|
||||
echo ICard::ipopup('ipopcard');
|
||||
echo ICard::ipopup('ipop_newcard');
|
||||
echo IPoste::ipopup('ipop_account');
|
||||
$search_card=new IPopup('ipop_card');
|
||||
$search_card->title=_('Recherche de fiche');
|
||||
$search_card->value='';
|
||||
echo $search_card->input();
|
||||
$pop_tva=new IPopup('popup_tva');
|
||||
$pop_tva->title=_('Choix TVA');
|
||||
$pop_tva->value='';
|
||||
echo $pop_tva->input();
|
||||
|
||||
$p_action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:'';
|
||||
|
||||
$cn=new Database(dossier::id());
|
||||
|
|
|
|||
|
|
@ -25,21 +25,10 @@
|
|||
*/
|
||||
require_once ('class_acc_ledger_fin.php');
|
||||
require_once('class_ipopup.php');
|
||||
$pop_tva=new IPopup('popup_tva');
|
||||
$pop_tva->title=_('Choix TVA');
|
||||
$pop_tva->value='';
|
||||
echo $pop_tva->input();
|
||||
|
||||
$gDossier=dossier::id();
|
||||
$p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:'';
|
||||
|
||||
echo ICard::ipopup('ipopcard');
|
||||
echo ICard::ipopup('ipop_newcard');
|
||||
echo IPoste::ipopup('ipop_account');
|
||||
$search_card=new IPopup('ipop_card');
|
||||
$search_card->title=_('Recherche de fiche');
|
||||
$search_card->value='';
|
||||
echo $search_card->input();
|
||||
|
||||
$cn=new Database(dossier::id());
|
||||
$menu_action="?p_action=fin&".dossier::get();
|
||||
|
|
|
|||
|
|
@ -29,18 +29,6 @@ require_once ('class_pre_op_ven.php');
|
|||
require_once ('class_document.php');
|
||||
require_once ('class_acc_ledger_info.php');
|
||||
require_once('class_ipopup.php');
|
||||
echo ICard::ipopup('ipopcard');
|
||||
echo ICard::ipopup('ipop_newcard');
|
||||
echo IPoste::ipopup('ipop_account');
|
||||
$search_card=new IPopup('ipop_card');
|
||||
$search_card->title=_('Recherche de fiche');
|
||||
$search_card->value='';
|
||||
echo $search_card->input();
|
||||
|
||||
$pop_tva=new IPopup('popup_tva');
|
||||
$pop_tva->title=_('Choix TVA');
|
||||
$pop_tva->value='';
|
||||
echo $pop_tva->input();
|
||||
|
||||
$p_action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:'';
|
||||
$gDossier=dossier::id();
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ require_once('constant.security.php');
|
|||
// SVNVERSION
|
||||
global $version_phpcompta;
|
||||
$version_phpcompta=3809;
|
||||
error_reporting (0);
|
||||
error_reporting (15);
|
||||
|
||||
global $g_captcha;
|
||||
$g_captcha=false;
|
||||
|
|
|
|||
|
|
@ -35,56 +35,7 @@ if ( isset($_REQUEST['action']))
|
|||
$choose=(isset ($_GET['choose']))?$_GET['choose']:"no";
|
||||
|
||||
if ($choose=='Valider') $choose='yes';
|
||||
if ( $action=="change_per")
|
||||
{
|
||||
$User->can_request(PARPER);
|
||||
foreach($_GET as $key=>$element)
|
||||
${"$key"}=$element;
|
||||
echo "<TABLE>";
|
||||
echo '<TR> <FORM ACTION="?p_action=periode" METHOD="POST">';
|
||||
echo dossier::hidden();
|
||||
echo ' <INPUT TYPE="HIDDEN" NAME="p_per" VALUE="'.$p_per.'">';
|
||||
|
||||
$istart=new IDate('p_date_start');
|
||||
$iend=new IDate('p_date_end');
|
||||
$iexercice=new INum('p_exercice');
|
||||
$iexercice->size=5;
|
||||
echo td($istart->input());
|
||||
echo td($iend->input());
|
||||
echo td($iexercice->input());
|
||||
|
||||
echo '<TD> <INPUT TYPE="SUBMIT" class="button" NAME="conf_chg_per" Value="Change"</TD>';
|
||||
echo '</FORM></TR>';
|
||||
echo "</TABLE>";
|
||||
// $choose="yes";
|
||||
echo HtmlInput::button_anchor(_('Retour'),'?p_action=periode&'.Dossier::get());
|
||||
exit();
|
||||
}
|
||||
if ( isset ($_POST["conf_chg_per"] ) )
|
||||
{
|
||||
$User->can_request(PARPER);
|
||||
extract($_POST);
|
||||
|
||||
if (isDate($p_date_start) == null ||
|
||||
isDate($p_date_end) == null ||
|
||||
strlen (trim($p_exercice)) == 0 ||
|
||||
(string) $p_exercice != (string)(int) $p_exercice ||
|
||||
$p_exercice < 2000 || $p_exercice > 2099 )
|
||||
{
|
||||
alert(_('Valeurs invalides'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$Res=$cn->exec_sql(" update parm_periode ".
|
||||
"set p_start=to_date('". $p_date_start."','DD.MM.YYYY'),".
|
||||
" p_end=to_date('". $p_date_end."','DD.MM.YYYY'),".
|
||||
" p_exercice='".$p_exercice."'".
|
||||
" where p_id=".$p_per);
|
||||
|
||||
}
|
||||
$choose="yes";
|
||||
|
||||
}
|
||||
if ( isset ($_POST["add_per"] ))
|
||||
{
|
||||
$User->can_request(PARPER,1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue