Changeset 15675 for trunk/templates
- Timestamp:
- 11/15/11 22:06:19 (6 months ago)
- Location:
- trunk/templates/base
- Files:
-
- 1 added
- 4 edited
-
css/default.css (modified) (1 diff)
-
css/grid.css (modified) (3 diffs)
-
grid.html (modified) (2 diffs)
-
images/icons/grid-drag-handle.png (added)
-
scripts/BxBaseGrid.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/base/css/default.css
r15674 r15675 104 104 } 105 105 106 .bx-def-color-bg-hl { 107 background-color: #f8f8ff; 108 } 109 110 .bx-def-color-bg-active { 111 background-color: #ffbb33; 112 } 113 106 114 /* borders */ 107 115 -
trunk/templates/base/css/grid.css
r15674 r15675 6 6 7 7 8 .bx-grid-table tr:hover { 9 background-color: #eee; 8 .bx-grid-table-row-trans { 9 -webkit-transition:background-color 1s linear; 10 -moz-transition:background-color 1s linear; 11 -o-transition:background-color 1s linear; 12 transition:background-color 1s linear; 10 13 } 11 14 12 15 .bx-grid-table th, 13 16 .bx-grid-table td { 14 padding- top:5px;15 padding- bottom:5px;16 text-align: center;17 padding-left:5px; 18 padding-right:5px; 19 text-align:left; 17 20 } 18 .bx-grid-table th { 19 text-align:center; 21 .bx-grid-table th:first-child, 22 .bx-grid-table td:first-child { 23 padding-left:10px; 20 24 } 21 25 … … 34 38 } 35 39 36 .bx-grid-drag-handle {40 div.bx-grid-drag-handle { 37 41 display:none; 42 width:16px; 43 height:16px; 44 45 background-image:url(../images/icons/grid-drag-handle.png); 46 38 47 cursor:move; 39 48 } 40 49 41 50 42 .bx-grid-gragging-row { 43 background-color:white; 51 .bx-grid-gragging-row { 52 53 -moz-border-radius: 3px; 54 -webkit-border-radius: 3px; 55 border-radius: 3px; 44 56 45 57 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; … … 49 61 opacity: 0.9; 50 62 51 -moz-box-shadow: 0px 10px 10px rgba(51, 51, 51, 0.7);52 -webkit-box-shadow: 0px 10px 10px rgba(51, 51, 51, 0.7);53 box-shadow: 0px 10px 10px rgba(51, 51, 51, 0.7);63 -moz-box-shadow: 1px 1px 5px rgba(51, 51, 51, 0.5); 64 -webkit-box-shadow: 1px 1px 5px rgba(51, 51, 51, 0.5); 65 box-shadow: 1px 1px 5px rgba(51, 51, 51, 0.5); 54 66 } 55 67 56 .bx-grid- drag-placeholder td {57 text-align:left;68 .bx-grid-table .bx-grid-drag-placeholder td { 69 padding-left:0; 58 70 } -
trunk/templates/base/grid.html
r15674 r15675 23 23 <div id="__id_cont__"> 24 24 25 <table id="__id_table__" class="bx-grid-table bx-def-margin-bottom bx-def-margin-top ">25 <table id="__id_table__" class="bx-grid-table bx-def-margin-bottom bx-def-margin-top bx-def-border-bottom bx-def-border-top"> 26 26 <thead> 27 <tr >27 <tr class="bx-def-border-bottom"> 28 28 <bx_repeat:row_header> 29 29 __header_cell__ … … 69 69 paginate_get_per_page: '__paginate_get_per_page__', 70 70 start: __start__, 71 per_page: __per_page__ 71 per_page: __per_page__, 72 columns: __columns__ 72 73 }); 73 74 glGrids.__object__.setSearchInputText ('<bx_text_js:_sys_grid_search />'); -
trunk/templates/base/scripts/BxBaseGrid.php
r15674 r15675 135 135 'start' => $iStart, 136 136 'per_page' => $iPerPage, 137 'columns' => count($this->_aOptions['fields']), 137 138 'bx_if:actions_bulk' => array ( 138 139 'condition' => !empty($this->_aOptions['actions_bulk']), … … 203 204 $sAttr = $this->_convertAttrs( 204 205 $aField, 'attr_head', 205 false, // don'tadd default classes206 'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 206 207 isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 207 208 ); … … 213 214 $sAttr = $this->_convertAttrs( 214 215 $aField, 'attr_head', 215 false, // don'tadd default classes216 'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 216 217 isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 217 218 ); … … 247 248 $sAttr = $this->_convertAttrs( 248 249 $aField, 'attr_cell', 249 ' rowhandler', // add default class250 'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 250 251 isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 251 252 ); … … 256 257 $sAttr = $this->_convertAttrs( 257 258 $aField, 'attr_cell', 258 ' rowhandler', // add default class259 'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 259 260 isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 260 261 ); 261 return '<td ' . $sAttr . '><div id="' . $this->_sObject . '_cell_' . $aRow[$this->_aOptions['field_id']] . '" class="bx-grid-drag-handle"> Ξ</div></td>';262 return '<td ' . $sAttr . '><div id="' . $this->_sObject . '_cell_' . $aRow[$this->_aOptions['field_id']] . '" class="bx-grid-drag-handle"></div></td>'; 262 263 } 263 264 … … 265 266 $sAttr = $this->_convertAttrs( 266 267 $aField, 'attr_cell', 267 ' rowhandler', // add default class268 'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 268 269 isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 269 270 ); … … 274 275 $sAttr = $this->_convertAttrs( 275 276 $aField, 'attr_cell', 276 false, // don'tadd default classes277 'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 277 278 isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 278 279 );
Note: See TracChangeset
for help on using the changeset viewer.