Exemple #1
0
<?php

$config = Kohana::$config->load('kwalbum');
$all_locations = Model_Kwalbum_Location::getAllArray();
$locations = array();
foreach ($all_locations as $loc) {
    $locations[$loc['id']] = $loc;
}
$all_locations = $locations;
$locations = array();
foreach ($all_locations as $loc) {
    $loc_parent = '';
    if ($loc['parent_location_id']) {
        $loc_parent = $all_locations[$loc['parent_location_id']]['name'] . $config->location_separator_1;
    }
    $locations[$loc_parent . $loc['name']] = $loc;
}
uksort($locations, 'strnatcasecmp');
$hide_levels = Model_Kwalbum_Item::$hide_level_names;
echo html::script($kwalbum_url . '/media/ajax/jquery.jeditable.mini.js') . html::script($kwalbum_url . '/media/ajax/admin/locations.js');
?>
<div class="box">
	<big><b>Editing Locations</b></big>

    <table border="1">
        <tr>
            <th>Count</th>
            <th style="width:255px;">Name</th>
            <th style="width:150px;">Name Visibility</th>
            <th>Delete?</th>
            <th>Mapping Coordinates</th>