Update htaccess to include rewrite rules for non-existing files and directories
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<?
|
||||
<?
|
||||
$this -> values['name'] ? $g_table = $this -> values['name'] : $g_table = $this -> values[ 'table' ];
|
||||
?>
|
||||
<div class="table-responsive">
|
||||
<table id="g-list" class="table mbn table-hover table-striped <? if ( $this -> values['condensed'] ):?>table-condensed<? endif;?> table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<?
|
||||
<?
|
||||
if ( $this -> values['multiselect'] )
|
||||
echo '<th class="g-lp">' .
|
||||
'<input type="checkbox" class="g-checkbox-all" />' .
|
||||
'</th>';
|
||||
|
||||
if ( is_array( $this -> values['columns_view'] ) )
|
||||
if ( is_array( $this -> values['columns_view'] ) )
|
||||
{
|
||||
$c_index = 0;
|
||||
$visible_columns = 0;
|
||||
@@ -68,7 +68,7 @@
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?
|
||||
<?
|
||||
if ( is_array( $this -> values['search'] ) )
|
||||
{
|
||||
$c_index = 0;
|
||||
@@ -77,7 +77,7 @@
|
||||
if ( is_array( $this -> values['columns_view'] ) ) foreach ( $this -> values['columns_view'] as $column )
|
||||
{
|
||||
$search_found = false;
|
||||
|
||||
|
||||
if ( filter_var( $this -> values['hidden_columns'][$c_index], FILTER_VALIDATE_BOOLEAN ) === false or $this -> values['hidden_columns'][$c_index] === null )
|
||||
{
|
||||
foreach ( $this -> values['search'] as $search )
|
||||
@@ -131,7 +131,7 @@
|
||||
echo '</select>'
|
||||
. '</th>';
|
||||
}
|
||||
|
||||
|
||||
if ( $search['type'] == 'date_range' )
|
||||
{
|
||||
echo '<th>';
|
||||
@@ -149,7 +149,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( !$search_found )
|
||||
echo '<th></th>';
|
||||
}
|
||||
@@ -194,8 +194,8 @@
|
||||
{
|
||||
echo '<td class="' . $column['td']['class'] . '" style="' . $column['td']['style'] . ''; if ( $column['td']['js'] ) echo 'cursor: pointer;'; echo '"';
|
||||
if ( $column['td']['js'] )
|
||||
{
|
||||
$out_js = $_SESSION[ 'g' . $g_table ] -> convertString( $column['td']['js'], $row );
|
||||
{
|
||||
$out_js = $_SESSION[ 'g' . $g_table ] -> convertString( $column['td']['js'], $row );
|
||||
|
||||
echo 'onclick="' . htmlspecialchars( $out_js ) . '"';
|
||||
}
|
||||
@@ -230,7 +230,7 @@
|
||||
|
||||
/* wyświtalania linku typu button */
|
||||
else if ( $column['action']['type'] == 'button' )
|
||||
{
|
||||
{
|
||||
if ( $column['action']['url'] )
|
||||
$out_url = $_SESSION[ 'g' . $g_table ] -> convertString( $column['action']['url'], $row );
|
||||
else
|
||||
@@ -246,15 +246,15 @@
|
||||
'onclick="' . htmlspecialchars( $out_js ) . '" ' .
|
||||
'class="g-tip g-button ' . $column['button']['class' ] . '" ' .
|
||||
'title="' . htmlspecialchars( $title ) . '" ' .
|
||||
'style="' . $column['button']['style'] . '">' . $column['button']['label'] .
|
||||
'style="' . $column['button']['style'] . '">' . $column['button']['label'] .
|
||||
'</a>';
|
||||
}
|
||||
|
||||
/* wyświtalania linku do edycji */
|
||||
else if ( $column['action']['type'] == 'edit' )
|
||||
{
|
||||
$out_url = $_SESSION[ 'g' . $g_table ] -> convertString( $column['action']['url'], $row );
|
||||
$out_js = $_SESSION[ 'g' . $g_table ] -> convertString( $column['action']['js'], $row );
|
||||
$out_url = $_SESSION[ 'g' . $g_table ] -> convertString( $column['action']['url'], $row );
|
||||
$out_js = $_SESSION[ 'g' . $g_table ] -> convertString( $column['action']['js'], $row );
|
||||
echo '<a href="' . $out_url . '" onclick="' . htmlspecialchars( $out_js ) . '" class="g-tip" title="edytuj"><i class="fa fa-cog fa-lg"></i></a>';
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
}
|
||||
|
||||
if ( $this -> values['actions']['edit'] )
|
||||
echo '<td class="center">' .
|
||||
echo '<td class="center">' .
|
||||
'<a href="#" class="g-edit g-tip" title="edytuj" element-id="' . $row[ $this -> values['id'] ] . '">' .
|
||||
'<i class="fa fa-cog fa-lg"></i>' .
|
||||
'</a>' .
|
||||
@@ -362,16 +362,16 @@
|
||||
<? endif;?>
|
||||
<? for ( $i = $this -> values['cp'] - 3; $i <= $this -> values['cp'] + 3; $i++ ):?>
|
||||
<? if ( $i > 0 && $i <= $ls ):?>
|
||||
<li class="<? if ( $i == $this -> values['cp'] ):?>active<? endif;?>
|
||||
<?
|
||||
if (
|
||||
$i == $this -> values['cp'] - 2
|
||||
or
|
||||
$i == $this -> values['cp'] + 2
|
||||
or
|
||||
$i == $this -> values['cp'] + 3
|
||||
or
|
||||
$i == $this -> values['cp'] - 3
|
||||
<li class="<? if ( $i == $this -> values['cp'] ):?>active<? endif;?>
|
||||
<?
|
||||
if (
|
||||
$i == $this -> values['cp'] - 2
|
||||
or
|
||||
$i == $this -> values['cp'] + 2
|
||||
or
|
||||
$i == $this -> values['cp'] + 3
|
||||
or
|
||||
$i == $this -> values['cp'] - 3
|
||||
):?> hidden-xs<? endif;?>">
|
||||
<a href="#" class="g-page" rel="prev" title="Przejdź do strony nr: <?= $i;?>" page="<?= $i;?>"><?= $i;?></a>
|
||||
</li>
|
||||
@@ -402,23 +402,23 @@
|
||||
<? endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col col-xs-12 col-sm-6 text-right text-centred-xs pull-right-sm">
|
||||
<div class="col col-xs-12 col-sm-6 p20 text-right text-centred-xs pull-right-sm">
|
||||
Wyświetlaj <select id="g-row-limit" class="form-control"><? if ( is_array( $this -> values['limits'] ) ): foreach ( $this -> values['limits'] as $key => $val ):?><option value="<?= $val;?>" <? if ( $this -> values['limit'] == $val ):?>selected="selected"<? endif;?>><?= $val;?></option><? endforeach; endif;?></select> rekordów
|
||||
</div>
|
||||
</div>
|
||||
<? endif;?>
|
||||
<script type="text/javascript">
|
||||
jQuery( function()
|
||||
{
|
||||
jQuery( function()
|
||||
{
|
||||
context.attach( '#g-<?= $g_table;?> #g-list tbody tr', menu_context_<?= str_replace( '-', '_', $g_table );?> );
|
||||
|
||||
|
||||
jQuery( '#g-<?= $g_table;?> #g-list .g-checkbox, #g-<?= $g_table;?> #g-list .g-radio' ).on( 'ifToggled', function()
|
||||
{
|
||||
var checkedVals = jQuery( '.g-checkbox:checked' ).map( function()
|
||||
var checkedVals = jQuery( '.g-checkbox:checked' ).map( function()
|
||||
{
|
||||
return this.value;
|
||||
}).get();
|
||||
|
||||
|
||||
if ( checkedVals != '' )
|
||||
{
|
||||
jQuery( '#g-<?= $g_table;?> #g-multidelete' ).show();
|
||||
@@ -433,7 +433,7 @@
|
||||
checkboxClass: 'icheckbox_minimal-blue',
|
||||
radioClass: 'iradio_minimal-blue'
|
||||
});
|
||||
|
||||
|
||||
jQuery( '#g-<?= $g_table;?> #g-list .g-checkbox-all' ).on( 'ifToggled', function()
|
||||
{
|
||||
jQuery( '#g-<?= $g_table;?> #g-list .g-checkbox' ).iCheck( 'toggle' );
|
||||
@@ -441,7 +441,7 @@
|
||||
checkboxClass: 'icheckbox_minimal-blue',
|
||||
radioClass: 'iradio_minimal-blue'
|
||||
});
|
||||
|
||||
|
||||
jQuery( '#g-<?= $g_table;?> #g-list #g-multidelete' ).hide();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user