<span style=
"color: #008080;"
> 1</span> <span style=
"color: #008080;"
> 2</span> <span style=
"color: #008080;"
> 3</span> <title>商品信息管理</title><span style=
"color: #008080;"
> 4</span> <span style=
"color: #008080;"
> 5</span> <span style=
"color: #008080;"
> 6</span> <center>
<span style=
"color: #008080;"
> 7</span> <span style=
"color: #000000;"
>php </span><span style=
"color: #008080;"
> 8</span> <span style=
"color: #0000ff;"
>
include
</span>(
"menu.php"
);<span style=
"color: #008000;"
>
<span style=
"color: #008080;"
>28</span> <form action=
"action.php?action=update"
enctype=
"multipart/form-data"
method=
"post"
>
<span style=
"color: #008080;"
>29</span> <input type=
"hidden"
name=
"id"
value=
"<?php echo <span style="
color:>
$shop
[
'id'
]; ?>
" /><span style="
color: #008080;
">30</span> <input type="
hidden
" name="
oldpic
" value="
<?php
echo
<span style=
" color:>$shop['pic']; ?>"
/><span style=
"color: #008080;"
>31</span> <span style=
"color: #008080;"
>32</span> <table border=
"0"
width=
"300"
>
<span style=
"color: #008080;"
>33</span> <tr>
<span style=
"color: #008080;"
>34</span> <td align=
"right"
>名称:</td>
<span style=
"color: #008080;"
>35</span> <td>
<input type=
"text"
name=
"name"
value=
"<?php echo <span style="
color:>
$shop
[
'name'
]; ?>" /></td>
<span style=
"color: #008080;"
>36</span> </tr>
<span style=
"color: #008080;"
>37</span> <tr>
<span style=
"color: #008080;"
>38</span> <td align=
"right"
>类型:</td>
<span style=
"color: #008080;"
>39</span> <td>
<span style=
"color: #008080;"
>40</span> <select name=
"typeid"
><span style=
"color: #008080;"
>41</span> <span style=
"color: #000000;"
>php </span><span style=
"color: #008080;"
>42</span> <span style=
"color: #0000ff;"
>
include
</span>(
"dbconfig.php"
<span style=
"color: #000000;"
>);</span><span style=
"color: #008080;"
>43</span> <span style=
"color: #0000ff;"
>
foreach
</span>(<span style=
"color: #800080;"
>
$typelist
</span> <span style=
"color: #0000ff;"
>
as
</span> <span style=
"color: #800080;"
>
$k
</span>=><span style=
"color: #800080;"
>
$v
</span><span style=
"color: #000000;"
>)</span><span style=
"color: #008080;"
>44</span> <span style=
"color: #000000;"
> {</span><span style=
"color: #008080;"
>45</span> <span style=
"color: #800080;"
>
$sd
</span> = (<span style=
"color: #800080;"
>
$shop
</span>[
'typeid'
]==<span style=
"color: #800080;"
>
$k
</span>)?
"selected"
:
""
;<span style=
"color: #008000;"
>
<span style=
"color: #008080;"
>51</span> </tr>
<span style=
"color: #008080;"
>52</span> <tr>
<span style=
"color: #008080;"
>53</span> <td align=
"right"
>单价:</td>
<span style=
"color: #008080;"
>54</span> <td>
<input type=
"text"
name=
"price"
value=
"<?php echo <span style="
color:>
$shop
[
'price'
]; ?>" /></td>
<span style=
"color: #008080;"
>55</span> </tr>
<span style=
"color: #008080;"
>56</span> <tr>
<span style=
"color: #008080;"
>57</span> <td align=
"right"
>库存:</td>
<span style=
"color: #008080;"
>58</span> <td>
<input type=
"text"
name=
"total"
value=
"<?php echo <span style="
color:>
$shop
[
'total'
]; ?>" /></td>
<span style=
"color: #008080;"
>59</span> </tr>
<span style=
"color: #008080;"
>60</span> <tr>
<span style=
"color: #008080;"
>61</span> <td align=
"right"
>图片:</td>
<span style=
"color: #008080;"
>62</span> <td><input type=
"file"
name=
"pic"
></td>
<span style=
"color: #008080;"
>63</span> </tr>
<span style=
"color: #008080;"
>64</span> <tr>
<span style=
"color: #008080;"
>65</span> <td align=
"right"
valign=
"top"
>描述:</td>
<span style=
"color: #008080;"
>66</span> <td><textarea rows=
"5"
cols=
"20"
name=
"note"
><?php <span style=
"color: #0000ff;"
>
echo
<span style=
"color: #800080;"
>
$shop
</span>[
'note'
]; ?></textarea></td>
<span style=
"color: #008080;"
>67</span> </tr>
<span style=
"color: #008080;"
>68</span> <span style=
"color: #008080;"
>69</span> <tr>
<span style=
"color: #008080;"
>70</span> <td colspan=
"2"
align=
"center"
>
<span style=
"color: #008080;"
>71</span> <input type=
"submit"
value=
"修改"
> &<span style=
"color: #000000;"
>nbsp;</span><span style=
"color: #008080;"
>72</span> <input type=
"reset"
value=
"重置"
><span style=
"color: #008080;"
>73</span> </td>
<span style=
"color: #008080;"
>74</span> </tr>
<span style=
"color: #008080;"
>75</span> <tr>
<span style=
"color: #008080;"
>76</span> <td align=
"right"
valign=
"top"
> </td>
<span style=
"color: #008080;"
>77</span> <td>
<img
class
=
"code_img_closed lazy"
src=
"/static/imghw/default1.png"
data-src=
"/img/2015/05/26/151456224.gif"
color: alt=
"PHP基础示范:商品信息管理系统v1.1"
>
$shop
[
'pic'
];?>" /></td>
<span style=
"color: #008080;"
>78</span> </tr>
<span style=
"color: #008080;"
>79</span> </table>
<span style=
"color: #008080;"
>80</span> </form>
<span style=
"color: #008080;"
>81</span> </center><span style=
"color: #008080;"
>82</span> <span style=
"color: #008080;"
>83</span>