📄 ajaxgrid.php
字号:
* Actualiza el template para el bot贸n anterior, cuando no hay p谩gina anterior.
*
* @param string $tmp nuevo valor
*/
function setTemplateNoPrevious($tmp){
$this->_tp_no_previous = $tmp;
}
/**
* Obtiene el template para el bot贸n anterior, cuando no hay p谩gina anterior.
*
* @return string
*/
function getTemplateNoPrevious(){
return $this->_tp_no_previous;
}
/**
* Actualiza el template para el bot贸n siguiente.
*
* @param string $tmp nuevo valor
*/
function setTemplateNext($tmp){
$this->_tp_next = $tmp;
}
/**
* Obtiene el template para el bot贸n suiguiente.
*
* @return string
*/
function getTemplateNext(){
return $this->_tp_next;
}
/**
* Actualiza el template para el bot贸n suiguiente, cuando no hay p谩gina suiguiente.
*
* @param string $tmp nuevo valor
*/
function setTemplateNoNext($tmp){
$this->_tp_no_next = $tmp;
}
/**
* Obtiene el template para el bot贸n suiguiente, cuando no hay p谩gina siguiente.
*
* @return string
*/
function getTemplateNoNext(){
return $this->_tp_no_next;
}
/**
* Actualiza el template para el bot贸n primera p谩gina.
*
* @param string $tmp nuevo valor
*/
function setTemplateFirst($tmp){
$this->_tp_first = $tmp;
}
/**
* Obtiene el template para el bot贸n primera p谩gina.
*
* @return string
*/
function getTemplateFirst(){
return $this->_tp_next;
}
/**
* Actualiza el template para el bot贸n primera p谩gina, cuando no hay datos.
*
* @param string $tmp nuevo valor
*/
function setTemplateNoFirst($tmp){
$this->_tp_no_first = $tmp;
}
/**
* Obtiene el template para el bot贸n primera p谩gina, cuando no hay datos.
*
* @return string
*/
function getTemplateNoFirst(){
return $this->_tp_no_first;
}
/**
* Actualiza el template para el bot贸n 煤ltima p谩gina.
*
* @param string $tmp nuevo valor
*/
function setTemplateLast($tmp){
$this->_tp_last = $tmp;
}
/**
* Obtiene el template para el bot贸n 煤ltima p谩gina.
*
* @return string
*/
function getTemplateLast(){
return $this->_tp_last;
}
/**
* Actualiza el template para el bot贸n 煤ltima p谩gina, cuando no hay datos.
*
* @param string $tmp nuevo valor
*/
function setTemplateNoLast($tmp){
$this->_tp_no_last = $tmp;
}
/**
* Obtiene el template para el bot贸n 煤ltima p谩gina, cuando no hay datos.
*
* @return string
*/
function getTemplateNoLast(){
return $this->_tp_no_last;
}
/**
* Actualiza el template para los links a p谩ginas.
*
* @param string $tmp nuevo valor
*/
function setTemplatePageLink($tmp){
$this->_tp_page_link = $tmp;
}
/**
* Obtiene el template para los links a p谩ginas.
*
* @return string
*/
function getTemplatePageLink(){
return $this->_tp_page_link;
}
/**
* Actualiza el template para el link a la p谩gina actual.
*
* @param string $tmp nuevo valor
*/
function setTemplateActualPageLink($tmp){
$this->_tp_actual_page_link = $tmp;
}
/**
* Obtiene el template para el link a la p谩gina actual.
*
* @return string
*/
function getTemplateActualPageLink(){
return $this->_tp_actual_page_link;
}
/**
* Actualiza el template para la barra de nabegaci贸n.
*
* @param string $tmp nuevo valor
*/
function setTemplateNavigationBar($tmp){
$this->_tp_navigation_bar = $tmp;
}
/**
* Obtiene el template para la barra de nabegaci贸n.
*
* @return string
*/
function getTemplateNavigationBar(){
return $this->_tp_navigation_bar;
}
/**
* Actualiza el template para la grilla completa.
*
* @param string $tmp nuevo valor
*/
function setTemplateGrid($tmp){
$this->_tp_grid = $tmp;
}
/**
* Obtiene el template para la grilla completa.
*
* @return string
*/
function getTemplateGrid(){
return $this->_tp_grid;
}
/**
* Actualiza el template para informaci贸n sobre filas.
*
* @param string $tmp nuevo valor
*/
function setTemplateRowsInfo($tmp){
$this->_tp_rowsInfo = $tmp;
}
/**
* Obtiene el template para informaci贸n sobre filas.
*
* @return string
*/
function getTemplateRowsInfo(){
return $this->_tp_rowsInfo;
}
/**
* Actualiza el template para informaci贸n sobre filas cuando no las hay.
*
* @param string $tmp nuevo valor
*/
function setTemplateRowsInfoEmty($tmp){
$this->_tp_rowsInfo_empty = $tmp;
}
/**
* Obtiene el template para informaci贸n sobre filas cuando no las hay.
*
* @return string
*/
function getTemplateRowsInfoEmty(){
return $this->_tp_rowsInfo_empty;
}
/**
* Actualiza el template para filas por p谩gina.
*
* @param string $tmp nuevo valor
*/
function setTemplateRowsPerPage($tmp){
$this->_tp_rowsPerPage = $tmp;
}
/**
* Obtiene el template para filas por p谩gina.
*
* @return string
*/
function getTemplateRowsPerPage(){
return $this->_tp_rowsPerPage;
}
/**
* Actualiza el template para mostrar cuando se est谩n enviando datos.
*
* @param string $tmp nuevo valor
*/
function setTemplateLoading($tmp){
$this->_tp_loading = $tmp;
}
/**
* Obtiene el template para mostrar cuando se est谩n enviando datos.
*
* @return string
*/
function getTemplateLoading(){
return $this->_tp_loading;
}
/**
* Actualiza el template para los men煤s de filtrado, item de eliminar filtro.
*
* @param string $tmp nuevo valor
*/
function setTemplateFilterMenuClearItem($tmp){
$this->_tp_filter_menu_clear_item = $tmp;
}
/**
* Obtiene el template para los men煤s de filtrado, item de eliminar filtro.
*
* @return string
*/
function getTemplateFilterMenuClearItem(){
return $this->_tp_filter_menu_clear_item;
}
/**
* Actualiza el template para filtros con input.
*
* @param string $tmp nuevo valor
*/
function setTemplateCustomFilter($tmp){
$this->_tp_custom_filter = $tmp;
}
/**
* Obtiene el template para filtros con input.
*
* @return string
*/
function getTemplateCustomFilter(){
return $this->_tp_custom_filter;
}
/**
* Actualiza la clase para la tabla.
*
* @param string $css nuevo valor
*/
function setCssTable($css){
$this->_css_table = $css;
}
/**
* Obtiene la clase para la tabla.
*
* @return string
*/
function getCssTable(){
return $this->_css_table;
}
/**
* Actualiza la clase para columnas ordenables.
*
* @param string $css nuevo valor
*/
function setCssSortable($css){
$this->_css_sortable = $css;
}
/**
* Obtiene la clase para columnas ordenables.
*
* @return string
*/
function getCssSortable(){
return $this->_css_sortable;
}
/**
* Actualiza la clase para el head ordenado.
*
* @param string $css nuevo valor
*/
function setCssSorted($css){
$this->_css_sorted = $css;
}
/**
* Obtiene a clase para el head ordenado.
*
* @return string
*/
function getCssSorted(){
return $this->_css_sorted;
}
/**
* Actualiza la clase para el head ordenado ascendentemente.
*
* @param string $css nuevo valor
*/
function setCssSortedAsc($css){
$this->_css_sorted_asc = $css;
}
/**
* Obtiene a clase para el head ordenado ascendentemente.
*
* @return string
*/
function getCssSortedAsc(){
return $this->_css_sorted_asc;
}
/**
* Actualiza la clase para el head ordenado descendente.
*
* @param string $css nuevo valor
*/
function setCssSortedDesc($css){
$this->_css_sorted_desc = $css;
}
/**
* Obtiene a clase para el head ordenado descendente.
*
* @return string
*/
function getCssSortedDesc(){
return $this->_css_sorted_desc;
}
/**
* Actualiza la clase para las filas pares.
*
* @param string $css nuevo valor
*/
function setCssOdd($css){
$this->_css_odd = $css;
}
/**
* Obtiene la clase para las filas pares.
*
* @return string
*/
function getCssOdd(){
return $this->_css_odd;
}
/**
* Actualiza la clase para las filas impares.
*
* @param string $css nuevo valor
*/
function setCssEven($css){
$this->_css_even = $css;
}
/**
* Obtiene la clase para las filas impares.
*
* @return string
*/
function getCssEven(){
return $this->_css_even;
}
/**
* Actualiza la imagen para el boton de filtrado.
*
* @param string $img nuevo valor
*/
function setFilterButton($img){
$this->_filter_button = $img;
}
/**
* Actualiza la imagen para el boton de filtrado, cuando hay filtro aplicado.
*
* @param string $img nuevo valor
*/
function setFilteredButton($img){
$this->_filtered_button = $img;
}
/**
* Actualiza la clase para los items del menu de filtrado.
*
* @param string $css nuevo valor
*/
function setCssFilterMenuItem($css){
$this->_css_filter_menu_item = $css;
}
/**
* Obtiene la clase para los items del menu de filtrado.
*
* @return string
*/
function getCssFilterMenuItem(){
return $this->_css_filter_menu_item;
}
/**
* Actualiza la clase para los items del menu de filtrado cuando el mouse pasa sobre ellos.
*
* @param string $css nuevo valor
*/
function setCssFilterMenuItemHover($css){
$this->_css_filter_menu_item_hover = $css;
}
/**
* Obtiene la clase para los items del menu de filtrado cuando el mouse pasa sobre ellos.
*
* @return string
*/
function getCssFilterMenuItemHover(){
return $this->_css_filter_menu_item_hover;
}
// FIN Parametros de configuracion
private function __construct($gridName,$queryDescriptors,$columns,$whereCondition,$filterDependencies){
$this->_gridName = $gridName;
$this->_queryDescriptors = $queryDescriptors;
$this->_columns = $columns;
$this->_maxRows = MAX_ROWS;
$this->_maxPageLinks = MAX_PAGE_LINKS;
$this->_actualRow = 0;
$this->_actualSortBy = $queryDescriptors[0]->getDefaultSortBy().' '.AjaxGrid::$ASC;
$this->_actualSortDir = AjaxGrid::$ASC;
$this->_actualSortedColumn = 0;
$this->_whereCondition = $whereCondition;
$this->setFilterDependencies($filterDependencies);
$this->_tp_previous = TP_PREVIOUS;
$this->_tp_no_previous = TP_NO_PREVIOUS;
$this->_tp_next = TP_NEXT;
$this->_tp_no_next = TP_NO_NEXT;
$this->_tp_first = TP_FIRST;
$this->_tp_no_first = TP_NO_FIRST;
$this->_tp_last = TP_LAST;
$this->_tp_no_last = TP_NO_LAST;
$this->_tp_page_link = TP_PAGE_LINK;
$this->_tp_actual_page_link = TP_ACTUAL_PAGE_LINK;
$this->_tp_navigation_bar = TP_NAVIGATION_BAR;
$this->_tp_grid = TP_GRID;
$this->_tp_rowsInfo = TP_ROWS_INFO;
$this->_tp_rowsInfo_empty = TP_ROWS_INFO_EMPTY;
$this->_tp_rowsPerPage = TP_ROWS_PER_PAGE;
$this->_tp_loading = TP_LOADING;
$this->_tp_filter_menu_clear_item = TP_FILTER_MENU_CLEAR_ITEM;
$this->_tp_custom_filter = TP_CUSTOM_FILTER;
$this->_cellpadding = CELLPADDING;
$this->_cellspacing = CELLSPACING;
$this->_border = BORDER;
$this->_nullValue = NULL_VALUE;
$this->_css_table = TABLE_CLASS;
$this->_css_sortable = SORTABLE_CLASS;
$this->_css_sorted = SORTED_CLASS;
$this->_css_sorted_asc = SORTED_ASC_CLASS;
$this->_css_sorted_desc = SORTED_DESC_CLASS;
$this->_css_odd = ODD_CLASS;
$this->_css_even = EVEN_CLASS;
$this->_filter_button = FILTER_BUTTON_IMAGE;
$this->_filtered_button = FILTERED_BUTTON_IMAGE;
$this->_css_filter_menu = FILTER_MENU_CLASS;
$this->_filterMenuWidth = FILTER_MENU_WIDTH;
$this->_filterMenuHeight = FILTER_MENU_HEIGHT;
$this->_css_filter_menu_item = FILTER_MENU_ITEM_CLASS;
$this->_css_filter_menu_item_hover = FILTER_MENU_ITEM_HOVER_CLASS;
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -