coffees-form.vm

来自「jetspeed源代码」· VM 代码 · 共 57 行

VM
57
字号
<form method="post" action="$jslink.setAction("portlets.TutorialCoffeesAction")">
  <div align="left">
    <table bgcolor="#ffffff" cellpadding="5">
      #if ($data.Message)
      <tr>
        <td colspan="2">
          <table bgcolor="red">
            <tr>
              <td>
                $data.Message
              </td>
            </tr>
          </table>
        </td>
      </tr>
      #end
     
      <tr>
        #formCell ("Brand of Coffee" "coffeeName" $!coffee.CoffeeName)
      </tr>
      <tr>
        #formCell ("Supplier Id" "supplierId" $!coffee.SupplierId)
      </tr>
      <tr>
        #formCell ("Unit Price" "price" $!coffee.Price)
      </tr>
      <tr>
        #formCell ("Sales Tax" "sales" $!coffee.Sales)
      </tr>
      <tr>
        #formCell ("Total Price" "total" $!coffee.Total)
      </tr>
  </table>

  <table bgcolor="#ffffff" cellpadding="5" width="100%">
  #if ($js_mode == "Delete")
      <tr>
        <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
         <input type="submit" name="eventSubmit_doDelete" value="Delete"/>
        </td>
  #else
      <tr>
        <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
         <input type="submit" name="eventSubmit_doUpdate" value="Save"/>
        </td>
  #end
      <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
       <input type="submit" name="eventSubmit_doCancel" value="Cancel">
      </td>
    </tr>
  </table>
    
</div>
</form>             


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?