/var/www/enzatesting.onesolution.hk/01_20240711_full_backup/inv_stone_addform.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php 
$formid 
"Stone";
require_once 
"inc/configure.php";

$row null;
//phpinfo(); exit;
 
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$system_var['COMPANY_NAME']?></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<?php require_once "inc/jsheader.php"?>
</head>
<body>

<form action="inv_stone_add.php" id="myform" method="post">
<input type="hidden" name="action" value="stone_addform" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" class="top"><?php require"mod_webhead.php"?></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" class="menu_bg"><?php require"mod_menu.php"?></td>
        <td valign="top" class="padding1"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr></tr>
          <tr>
            <td class="c3_bg"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="20" class="separator"><input type="image" src="image/icon_save.jpg" width="20" height="20" /></td>
                <td width="20" class="separator"><a href="<?=basename($_SERVER['REQUEST_URI'])?>"><img src="image/icon_undo.jpg" width="20" height="20" /></a></td>
                <!--<td width="20" class="separator"><img src="image/icon_redo.jpg" width="20" height="20" /></td>
                <td width="20" class="separator"><img src="image/icon_delete.jpg" width="20" height="20" /></td>-->
                <td class="separator stext1"><?=STONE?> - <span><?=ADD?></span></td>
                <td class="separator etext1"><?=$row['itemno']?> - <span><?=$row['name']?></span></td>
                <!--<td width="200" align="right" class="separator etext2">Last Modified: <?=$row['lastupdate']?></td>-->
                <td width="80" align="right" class="separator etext2"><a href="inv_stone_index.php?act=resume" onclick="return ConfirmSave('myform')" class="closebtn"><?=CLOSE?></a>
                <input type="hidden" name="godest" id="godest" />
                <input type="hidden" name="formdest" value="inv_stone_index.php?act=resume" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top" class="c2_bg">
            <!--main form-->
            

    <div id="tabs" class="ui-tabs">
    <ul>
        <li><a href="#tabs-2"><?=GENERAL?></a></li>
        <li><a href="#tabs-3"><?=SEGMENTS?></a></li>
    </ul>
    <div id="scontent">
        <div id="tabs-2">
        <p><table width="100%" border="0">
    <tr>
        <td width="60px"><?=ITEMNO?></td>
        <td><?=$row['itemno']?><input type="hidden" name="itemno_gen" value="<?=$row['itemno']?>" id="itemno_gen" readonly /></td>
        <td width="60px"><?=NAME?></td>
        <td><input type="text" name="name" value="<?=$row['name']?>" id="name" size="40" /></td>
    </tr>
    <tr>        
        <td>&nbsp;</td>
        <td>&nbsp;</td>    
        <td><?=NAMESC?></td>
        <td><input type="text" name="cname" value="<?=$row['cname']?>" id="cname" size="40" /></td>
    </tr>
    <tr>        
        <td><?=ITEMGP?></td>
        <td><select name="itemgp"><?=master_option("ITEMGP"$row['itemgp'], true)?></select></td>    
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td><?=WEIGHT?></td>
        <td colspan="3"><input type="text" name="weight" value="<?=numf($row['weight'])?>" id="weight" class="positive shortfield" /><select name="uom_wt"><?=master_option("UOM_WT"$row['uom_wt'])?></select></td>
    </tr>
    <tr>
        <td><?=THICKNESS?></td>
        <td colspan="3"><input type="text" name="thickness" value="<?=numf($row['thickness'])?>" id="thickness" class="positive shortfield" /><select name="uom_di"><?=master_option("UOM_DI"$row['uom_di'])?></select></td>
    </tr>
    
<?php if(havePermission("GPu")){ //GP-----------------------------------?>    
    <tr>
        <td><?=PRICE?></td>
        <td colspan="3"><input type="text" name="price" value="<?=numf($row['price'])?>" id="price" class="positive shortfield" /><select name="uom_cy"><?=master_option("UOM_CY"$row['uom_cy'])?></select>/<select name="uom_price"><?=master_option("UOM_PRICE"$row['uom_price'])?></select></td>
        <!--<td>&nbsp;</td>-->
    </tr>
<?php } else if(havePermission("GPr")){?>
       <!--<tr>
        <td><?=PRICE?></td>
        <td colspan="3"><input type="text" name="price" value="<?=numf($row['price'])?>" id="price" class="positive" readonly="readonly" /><?=$row['uom_cy']?>/<?=$row['uom_price']?></td>
        <td>&nbsp;</td>
    </tr>-->
<?php //END of GP--------------------------------------------------?>
    
<!--    <tr>
        <td><?=PRICE?></td>
        <td colspan="3"><input type="text" name="price" value="<?=numf($row['price'])?>" id="price" class="positive" /><select name="uom_cy"><?=master_option("UOM_CY"$row['uom_cy'])?></select>/<select name="uom_price"><?=master_option("UOM_PRICE"$row['uom_price'])?></select></td>
        <!--<td>&nbsp;</td>--
    </tr>
    <tr>
        <td><?=UNITPRICE?></td>
        <td><input type="text" name="unitprice" value="<?=numf($row['unitprice'])?>" id="unitprice" class="positive" readonly /><?=$row['uom_inventory']?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>-->
</table></p>
    </div>
    
    
    <div id="tabs-3">
        <p><table width="100%" border="0">
    <tr>
        <td width="120px"><?=STONETYPE?></td>
        <td><select name="stonetype"><?=master_option("STONETYPE"$row['stonetype'], true)?></select></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>        
        <td><?=STONEQLTY?></td>
        <td><select name="stoneqlty"><?=master_option("STONEQLTY"$row['stoneqlty'], true)?></select></td>    
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td><?=STONECOLOR?></td>
        <td><select name="stonecolor"><?=master_option("STONECOLOR"$row['stonecolor'], true)?></select></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td><?=STONESHAPE?></td>
        <td><select name="stoneshape"><?=master_option("STONESHAPE"$row['stoneshape'], true)?></select></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td><?=SIZE?></td>
        <td><input type="text" name="stonesize" value="<?=$row['stonesize']?>" size="6" maxlength="6"  /><input type="text" name="ss2d" value="<?=$row['stonesize2']?>" size="6" maxlength="6" class="positive" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr><td><?=VERIFIED?></td>
        <td><select name="verified"><?=master_option("VERIFIED"$row['verified'], true)?></select></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr><td><?=STONE_FRAGILITY?></td>
        <td><select name="stonefragility"><option value=""></option><?=master_option("STONEFRAGILITY"$row['stonefragility'], true)?></select></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>        
</table><!--<input type="submit" name="submit" value="Save"/>&nbsp;--></p>
    </div>
    </div><!--end scontent-->
<input type="hidden" name="refid" value="<?=$refid?>" /><!--&nbsp;<input type="button" name="Close" value="Close" onclick="fbox_close(); location.href='stone_index.php?msg=Cancel'" style="float:right"/>-->
</div>

            <!-- end of mainform-->
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>