- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_currency_set_gui.php
blobe315dcc62862e2f8ee86eb996282ec275010a5e0
1 <script language="javascript">
2 <!--
3 function deleteCurrency(n,s)
5 if(s=="main")
7 alert("<?php echo $LDNoMainDelete ?>");
9 else if (confirm("<?php echo $LDDeleteCurrency ?>"))
11 window.location.replace('<?php echo $thisfile.'?sid='.$sid.'&lang='.$lang ?>&mode=delete&item_no=' + n );
15 -->
16 </script>
19 <ul>
21 <FONT COLOR="<?php print $cfg['top_txtcolor']; ?>" SIZE=+2>
22 <?php echo $LDSetCurrency ?> </FONT><FONT class="prompt"><p>
23 <?php
24 if(($mode=='save')&&$new_main_currency) echo '<img '.createMascot($root_path,'mascot1_r.gif','0','absmiddle').'> '.$LDNewCurrencySet.'<p>';
25 echo $LDPlsSelectCurrency;
27 </font>
28 <p>
30 <form action="<?php echo $thisfile ?>" name="c_form" method="post" onSubmit="return chkForm(this)">
31 <table border=0 cellspacing=1 cellpadding=5>
32 <?php
34 while($currency=$ergebnis->FetchRow())
36 echo '<tr>
37 <td bgcolor="#e9e9e9"><input type="radio" name="new_main_item" value="'.$currency['item_no'].'"';
38 if($currency['status']=='main')
40 echo ' checked';
41 $old_main_item=$currency['item_no'];
43 echo '></td>
44 <td bgcolor="#e9e9e9"><b>'.$currency['short_name'].'</b> </FONT></td>
45 <td bgcolor="#e9e9e9"><b>'.$currency['long_name'].'</b> </FONT></td>
46 <td bgcolor="#f9f9f9">'.$currency['info'].'<br></td>
47 <td bgcolor="#e9e9e9"><FONT ';
48 if($currency['status']=='main') {
49 echo ' color="red"';
50 $ld_buffer='LD'.$currency['status'];
51 echo '>'.$$ld_buffer.'<br>';
53 echo '
54 </td>';
55 if(defined('SET_EDIT') && SET_EDIT==1) echo '<td bgcolor="#e9e9e9">
56 <a href="'.$editfile.$currency['item_no'].'"><button onClick="javascript:window.location.href=\''.$editfile.$currency['item_no'].'\'">'.$LDEditInfo.'</button></a>
57 </td>';
58 //echo '<td><a href="'.$thisfile.'?sid='.$sid.'&lang='.$lang.'&mode=delete&item_no='.$currency['item_no'].'"><img '.createComIcon($root_path,'delete2.gif','0').' alt="'.$LDDelete.'"></a></td>';
59 if($currency['status']!='main'){
60 echo '<td bgcolor="#e9e9e9"><a href="javascript:deleteCurrency('.$currency['item_no'].',\''.$currency['status'].'\')"><img '.createComIcon($root_path,'delete2.gif','0').' alt="'.$LDDelete.'"></a></td>';
61 }else{
62 echo '<td bgcolor="#e9e9e9">&nbsp;</td>';
65 echo '
66 </tr>';
69 </table>
70 <p>
71 <a href="<?php echo $returnfile ?>"><img <?php echo createLDImgSrc($root_path,'back2.gif','0') ?>></a>
72 <input type="image" <?php echo createLDImgSrc($root_path,'savedisc.gif','0') ?>>&nbsp;&nbsp;&nbsp;&nbsp;
73 <a href="<?php echo $returnfile ?>"><img <?php echo createLDImgSrc($root_path,'close2.gif','0') ?>></a>
74 <input type="hidden" name="sid" value="<?php echo $sid;?>">
75 <input type="hidden" name="lang" value="<?php echo $lang; ?>">
76 <input type="hidden" name="old_main_item" value="<?php echo $old_main_item; ?>">
77 <input type="hidden" name="mode" value="save">
78 <input type="hidden" name="validator" value="<?php for($i=0;$i<sizeof($LDDateFormats);$i++) echo $LDDateFormats[$i]."_"; ?>">
79 </form>
80 <p><br><p>
81 <hr>
82 <a href="<?php echo $bottomlink; ?>">
83 <img <?php echo createComIcon($root_path,'bul_arrowgrnsm.gif','0') ?>> <?php echo $bottomlink_txt; ?></a>
84 </ul>