default_edit.php
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* @package JMAP::SOURCES::administrator::components::com_jmap
* @subpackage views
* @subpackage sources
* @subpackage tmpl
* @author Joomla! Extensions Store
* @copyright (C) 2015 - Joomla! Extensions Store
* @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
*/
defined ( '_JEXEC' ) or die ( 'Restricted access' );
$formEnctype = $this->record->type == 'plugin' ? 'enctype="multipart/form-data"' : null;
?>
<form <?php echo $formEnctype;?> action="index.php" method="post" name="adminForm" id="adminForm">
<!-- New Plugin Data source only -->
<?php if($this->record->type == 'plugin' && !$this->record->id) {
echo $this->loadTemplate('edit_pluginimport');
}?>
<!-- Data source details -->
<?php echo $this->loadTemplate('edit_details'); ?>
<!-- Data source parameters -->
<?php echo $this->loadTemplate('edit_params'); ?>
<!-- Data source parameters for XML format -->
<?php echo $this->loadTemplate('edit_xmlparams'); ?>
<!-- Menu Data source only -->
<?php if($this->record->type == 'menu') {
echo $this->loadTemplate('edit_menu');
}?>
<!-- Content Data source only -->
<?php if($this->record->type == 'content') {
echo $this->loadTemplate('edit_content');
}?>
<!-- User Data source only -->
<?php if ($this->record->type == 'user') {
echo $this->loadTemplate('edit_sqlquery');
}?>
<!-- Plugin Data source only -->
<?php if($this->record->type == 'plugin' && $this->record->id) {
echo $this->loadTemplate('edit_pluginparams');
}?>
<!-- Links Data source only -->
<?php if($this->record->type == 'links') {
echo $this->loadTemplate('edit_links');
}?>
<input type="hidden" name="option" value="<?php echo $this->option?>" />
<input type="hidden" name="id" value="<?php echo $this->record->id; ?>" />
<input type="hidden" id="regenerate_query" name="regenerate_query" value="" />
<input type="hidden" name="task" value="" />
</form>
<!-- Go to bottom -->
<div class="label label-default" id="gobottom">
<span class="glyphicon glyphicon-arrow-down"></span> <?php echo JText::_('COM_JMAP_GO_TO_BOTTOM');?>
</div>
<!-- Back to top -->
<div class="label label-default" id="backtop">
<span class="glyphicon glyphicon-arrow-up"></span> <?php echo JText::_('COM_JMAP_BACK_TO_TOP');?>
</div>