製作Record 中的拷貝及上一筆,下一筆的按鈕
發表於 : 2007-01-05 10:47:14
在 html 中加入
<!-- BEGIN Button Button_Update -->
<input class="AquaButton" type="submit" value="更新" name="{Button_Name}">
<input class="AquaButton" type="submit" value="拷貝" name="Button_Insert">
<input class="AquaButton" onclick="location='cust2.php'" type="button" value="新客戶" name="Button_New">
<input class="AquaButton" onclick="location='cust2.php?cust_id={up_record}'" type="button" value="上一筆" name="Button_Up">
<input class="AquaButton" onclick="location='cust2.php?cust_id={down_record}'" type="button" value="下一筆" name="Button_Down">
<!-- END Button Button_Update -->
在 Record 中加入
hidden -> up_record
hidden -> down_record
在event中加入
$cust->up_record->SetValue($cust->cust_id->GetValue()-1);
$cust->down_record->SetValue($cust->cust_id->GetValue()+1);
<!-- BEGIN Button Button_Update -->
<input class="AquaButton" type="submit" value="更新" name="{Button_Name}">
<input class="AquaButton" type="submit" value="拷貝" name="Button_Insert">
<input class="AquaButton" onclick="location='cust2.php'" type="button" value="新客戶" name="Button_New">
<input class="AquaButton" onclick="location='cust2.php?cust_id={up_record}'" type="button" value="上一筆" name="Button_Up">
<input class="AquaButton" onclick="location='cust2.php?cust_id={down_record}'" type="button" value="下一筆" name="Button_Down">
<!-- END Button Button_Update -->
在 Record 中加入
hidden -> up_record
hidden -> down_record
在event中加入
$cust->up_record->SetValue($cust->cust_id->GetValue()-1);
$cust->down_record->SetValue($cust->cust_id->GetValue()+1);