Fix cosmetic

This commit is contained in:
sparkyx 2006-08-09 19:05:17 +00:00
parent 46d0f5f493
commit 4473470052
4 changed files with 20 additions and 14 deletions

View file

@ -312,7 +312,7 @@ class widget {
//file
if (strtoupper($this->type)=="FILE") {
if ( $this->readonly == false ) {
$r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">';
$r='<INPUT class="inp" TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">';
}
if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>";
@ -326,7 +326,7 @@ class widget {
// Do we need to filter ??
if ( $this->extra2 == null ) {
$r=sprintf('<TD>
<INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search">
<INPUT class="inp" TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search">
%s</TD><TD>
<INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
@ -379,7 +379,7 @@ class widget {
<INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New">
</TD><TD>
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search">
%s <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
%s <INPUT style="border:solid 1px blue;" TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
',
$l_sessid,
$this->extra, // deb or cred
@ -420,7 +420,8 @@ class widget {
{
$r=sprintf('<TD>
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
%s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
%s</TD><TD> <INPUT style="border:solid 1px blue;" TYPE="Text" style="border:solid 1px blue;" '.
' NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
',
$l_sessid,
$this->extra,
@ -436,7 +437,8 @@ class widget {
{
$r=sprintf('
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
%s <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> ',
%s <INPUT TYPE="Text" style="border:solid 1px blue;" '.
' NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> ',
$l_sessid,
$this->extra,
$this->name,
@ -491,7 +493,8 @@ class widget {
// input type == js_tva
if ( strtolower($this->type)=="js_tva") {
$id=sprintf("<span id=%s></span>",$this->label);
$r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">',
$r=sprintf('%s<TD> <INPUT TYPE="Text" style="border:solid 1px blue;" '.
' NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">',
$id,
$this->name,
$this->value,
@ -513,7 +516,7 @@ class widget {
<INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search">
%s</TD><TD>
<INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
<INPUT TYPE="Text" style="border:solid 1px blue;" NAME="%s" VALUE="%s" SIZE="8">
</TD>',
$l_sessid,
$this->name,

View file

@ -86,11 +86,11 @@ if ( $sub_action == "" )
//Display a blank card
if ( $sub_action=="blank")
{
$retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
$retour_action=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
"commercial.php?p_action=contact");
echo '<div class="u_redcontent">';
echo $retour;
echo $retour_action;
$c=new contact($cn);
echo '<form method="post" action="commercial.php"';
echo '<input type="hidden" name="p_action" value="client">';
@ -100,7 +100,7 @@ if ( $sub_action=="blank")
echo $c->blank($_GET['fd_id']);
echo '<input type="Submit" value="Sauve">';
echo '</form>';
echo $retour;
echo $retour_action;
echo '</div>';
}
//-----------------------------------------------------

View file

@ -46,7 +46,7 @@ $h_url="";
if ( isset ($_REQUEST['url']))
{
$retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url']));
$retour=sprintf('<A class="mtitle" HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url']));
$h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url']));
}
@ -133,7 +133,7 @@ if ( $sub_action == "list")
echo $w->IOValue();
echo $w->Submit('gl_submit','Rechercher');
echo $retour;
echo '<br>'.$retour;
// Show list of sell
// Date - date of payment - Customer - amount
@ -231,8 +231,8 @@ if ( isset($_POST['save']))
echo $form;
echo '<hr>';
echo '</form>';
echo '<A href="commercial.php?p_action=depense&p_jrn='.$p_jrn.'">
<input type="button" Value="Nouveau"></A>';
echo '<A class="mtitle" href="commercial.php?p_action=depense&p_jrn='.$p_jrn.'">
<input type="button" Value="Autre dépense"></A>';
exit();
}
//-----------------------------------------------------

View file

@ -236,6 +236,9 @@ if ( isset($_POST['record_and_print_invoice']))
echo $str_file;
}
echo '</form>';
// Button return
printf ('<A class="mtitle" href="?jrn_type=VEN&p_jrn=%d&p_action=facture"><input type="Button" value="Autre Facture"></A>',
$p_jrn);
exit();
}
//-----------------------------------------------------