init
This commit is contained in:
30
module/googlemaps/edit_googlemaps_line_listform.inc.php
Normal file
30
module/googlemaps/edit_googlemaps_line_listform.inc.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$formname = "form_line_list";
|
||||
$inputname = "input_id";
|
||||
$input_page_id = (isset($_REQUEST["input_page_id"]) ? $_REQUEST["input_page_id"] : "");
|
||||
$input_component_id = (isset($_REQUEST["input_component_id"]) ? $_REQUEST["input_component_id"] : "");
|
||||
?>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input name="input_id" type="hidden" value="<?= $input_id ?>">
|
||||
<input type="hidden" class="selected_linklist_row" name="input_line_id" value="" />
|
||||
<input type="hidden" name="input_page_id" value="<?php echo $input_page_id; ?>" />
|
||||
<input type="hidden" name="input_component_id" value="<?php echo $input_component_id; ?>" />
|
||||
|
||||
<h2><?php echo $translation->get("google_maps_field_headline"); ?></h2>
|
||||
<ul class="toolbar_menu">
|
||||
<?= button("new", $translation->get("new"), $formname, "loadCard('new_line_googlemaps', true)", "", FALSE); ?>
|
||||
<?= button("edit", $translation->get("edit"), $formname, "loadCard('edit_line_googlemaps')", "", FALSE); ?>
|
||||
<?= button("delete", $translation->get("delete"), $formname, "loadCard('delete_line_googlemaps', false, '{$translation->get('delete_line_confirm')}')", "", FALSE); ?>
|
||||
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?
|
||||
$query = "SELECT id, title AS '" . $translation->get("title") . "', address as '" . $translation->get("address") . "' FROM google_maps_line WHERE header_id = '" . $input_id . "' ORDER BY sorting ASC";
|
||||
if ($result = @mysqli_query($GLOBALS['mysql_con'], $query)) {
|
||||
linklist($result, $formname, $format, "input_line_id", "edit_line_googlemaps", TRUE, "update_sortorder_googlemaps");
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
Reference in New Issue
Block a user