本文整理匯總了PHP中PMA_getSubmitTypeDropDown函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_getSubmitTypeDropDown函數的具體用法?PHP PMA_getSubmitTypeDropDown怎麽用?PHP PMA_getSubmitTypeDropDown使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了PMA_getSubmitTypeDropDown函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testGetSubmitTypeDropDown
/**
* Test for PMA_getSubmitTypeDropDown
*
* @return void
*/
public function testGetSubmitTypeDropDown()
{
$result = PMA_getSubmitTypeDropDown(true, 2, 2);
$this->assertTag(PMA_getTagArray('<select name="submit_type" class="control_at_footer" tabindex="5">'), $result);
$this->assertTag(PMA_getTagArray('<option value="save">', array('content' => 'Save')), $result);
}
示例2: PMA_getActionsPanel
/**
* Get action panel
*
* @param array $where_clause where clause
* @param string $after_insert insert mode, e.g. new_insert, same_insert
* @param integer $tabindex tab index
* @param integer $tabindex_for_value offset for the values tabindex
* @param boolean $found_unique_key boolean variable for unique key
*
* @return string an html snippet
*/
function PMA_getActionsPanel($where_clause, $after_insert, $tabindex, $tabindex_for_value, $found_unique_key)
{
$html_output = '<fieldset id="actions_panel">' . '<table cellpadding="5" cellspacing="0">' . '<tr>' . '<td class="nowrap vmiddle">' . PMA_getSubmitTypeDropDown($where_clause, $tabindex, $tabindex_for_value) . "\n";
$html_output .= '</td>' . '<td class="vmiddle">' . ' <strong>' . __('and then') . '</strong> ' . '</td>' . '<td class="nowrap vmiddle">' . PMA_getAfterInsertDropDown($where_clause, $after_insert, $found_unique_key) . '</td>' . '</tr>';
$html_output .= '<tr>' . PMA_getSubmitAndResetButtonForActionsPanel($tabindex, $tabindex_for_value) . '</tr>' . '</table>' . '</fieldset>';
return $html_output;
}
示例3: testGetSubmitTypeDropDown
/**
* Test for PMA_getSubmitTypeDropDown
*
* @return void
*/
public function testGetSubmitTypeDropDown()
{
$result = PMA_getSubmitTypeDropDown(array(), 2, 2);
$this->assertContains('<select name="submit_type" class="control_at_footer" tabindex="5">', $result);
$this->assertContains('<option value="save">', $result);
}