Author: danydb Date: 2012-01-11 21:15:45 +0100 (Wed, 11 Jan 2012) New Revision: 278
Removed: trunk/coprop/include/template/coprop_lot_add.php trunk/coprop/include/template/coprop_lot_mod.php Log: remove old files Deleted: trunk/coprop/include/template/coprop_lot_add.php =================================================================== --- trunk/coprop/include/template/coprop_lot_add.php 2012-01-11 13:56:31 UTC (rev 277) +++ trunk/coprop/include/template/coprop_lot_add.php 2012-01-11 20:15:45 UTC (rev 278) @@ -1,109 +0,0 @@ -<?php - -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -/* $Revision$ */ - -// Copyright Author Dany De Bontridder [email protected] - -/** - * @file - * @brief ajout lien entre copro et lot - * - */ - $copro=new ICard(); - $copro->label="Copropriétaire : ".HtmlInput::infobulle(0) ; - $copro->name="w_copro"; - $copro->tabindex=1; - $copro->value=""; - $copro->table=0; - - // name of the field to update with the name of the card - $copro->set_attribute('label','w_copro_label'); - // Type of card : deb, cred, - $copro->set_attribute('typecard',$g_copro_parameter->categorie_coprop); - - $copro->extra=$g_copro_parameter->categorie_coprop; - -// Add the callback function to filter the card on the jrn - $copro->set_callback('filter_card'); - $copro->set_attribute('ipopup','ipopcard'); -// when value selected in the autcomplete - $copro->set_function('fill_data'); - -// when the data change - $copro->javascript=sprintf(' onchange="fill_data_onchange(\'%s\');" ', - $copro->name); - $copro->set_dblclick("fill_ipopcard(this);"); - - $copro_label=new ISpan(); - $copro_label->table=0; - $f_copro=$copro_label->input("w_copro_label",""); - -// Search button for card - $f_copro_bt=$copro->search(); - - -echo '<form method="post" onsubmit="return confirm(\'Vous validez ?\')">'; -echo h2("Affectation de lot à un copropriétaire",'class="info"'); -echo "Copropriétaire ".$copro->input(); -echo $f_copro_bt; -echo $f_copro; -echo HtmlInput::hidden('p_jrn',$g_copro_parameter->journal_appel); -echo HtmlInput::hidden('ledger_type','ODS'); -$alot=$cn->get_array("select f_id, - (select ad_value from fiche_Detail as e where ad_id=1 and e.f_id=a.f_id) as fname, - (select ad_value from fiche_Detail as f where ad_id=23 and f.f_id=a.f_id) as fqcode, - (select ad_value from fiche_Detail as f where ad_id=9 and f.f_id=a.f_id) as fdesc - from fiche as a - where - fd_id=$1 - ", array($g_copro_parameter->categorie_lot)); -if ( count($alot)==0) { - echo h2info('Aucune fiche de lot'); - exit(); -} -?> -<table> - <tr> - <th>Lot</th> - <th>Description</th> - </tr> -<? -for ($i=0;$i<count($alot);$i++): - -// Search button for card - $ck=new ICheckBox("lot[]"); - $ck->value=$alot[$i]['f_id']; -?> -<tr> - <td> - <?=$ck->input()?> - </td> - <td> - <?=HtmlInput::card_detail($alot[$i]['fqcode'],$alot[$i]['fname'],' class="line" ')?> - </td> - <td> - <?=$alot[$i]['fdesc']?> - </td> -</tr> -<? endfor;?> -</table> -<? echo HtmlInput::submit('copro_new','Sauver');?> -<? echo HtmlInput::button("add_link","Retour à la liste sans sauver ","onclick=\"copro_show_list()\"");?> -</form> Deleted: trunk/coprop/include/template/coprop_lot_mod.php =================================================================== --- trunk/coprop/include/template/coprop_lot_mod.php 2012-01-11 13:56:31 UTC (rev 277) +++ trunk/coprop/include/template/coprop_lot_mod.php 2012-01-11 20:15:45 UTC (rev 278) @@ -1,97 +0,0 @@ -<?php - -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -/* $Revision$ */ - -// Copyright Author Dany De Bontridder [email protected] - -/** - * @file - * @brief included from ajax_mod_copro_lot.php - * - */ - -?> -<h1> - Modification<?=HtmlInput::card_detail($copro->strAttribut(ATTR_DEF_QUICKCODE),$copro->strAttribut(ATTR_DEF_NAME),' class="line"')?> -</h1> -<h2>Lot affecté à ce copropriétaire</h2> -<form method="post" onsubmit="return confirm('Vous confirmez ?')"> - <?=HtmlInput::hidden("copro_id",$copro->id)?> -<table class="result"> - <tr> - <th> - Lot - </th> - <th> - Description - </th> - </tr> -<? for ($i=0;$i<count($acurrent);$i++): ?> - <tr id="row<?=$acurrent[$i]['l_id']?>"> - <td> - <?=HtmlInput::card_detail($acurrent[$i]['fiche_qcode'],$acurrent[$i]['fiche_name'],' class="line"')?> - </td> - <td> - <?=$acurrent[$i]['fiche_desc']?> - </td> - <td id="col<?=$acurrent[$i]['l_id']?>"> - <? - $js="onclick=remove_lot('".$_REQUEST['plugin_code']."','".$_REQUEST['ac']."','".$_REQUEST['gDossier']."','".$acurrent[$i]['l_id']."')"; - echo HtmlInput::anchor("enlever","",$js); - ?> - </td> - </tr> -<? endfor; ?> -</table> -<?=HtmlInput::submit('updexist',"Mise à jour")?> -</form> -<hr> -<h2>Autre lots</h2> -<form method="post" onsubmit="return confirm('Vous confirmez ?')"> - <?=HtmlInput::hidden("copro_id",$copro->id)?> -<table class="result"> - <tr> - <th> - Lot - </th> - <th> - Description - </th> - </tr> -<? for ($i=0;$i<count($not_assigned);$i++): ?> - <tr > - <td> - <?=HtmlInput::card_detail($not_assigned[$i]['fiche_qcode'],$not_assigned[$i]['fiche_name'],' class="line"')?> - </td> - <td> - <?=$not_assigned[$i]['fiche_desc']?> - </td> - <td> - <? - $ck=new ICheckBox("lot[]"); - $ck->value=$not_assigned[$i]['f_id']; - echo $ck->input(); - ?> - </td> - </tr> -<? endfor; ?> -</table> -<?=HtmlInput::submit('addlot',"Ajout des lots sélectionnés")?> -</form> _______________________________________________ Phpcompta-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/phpcompta-dev
