Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
0
application/views/scripts/config/add-recipient-cc.phtml
Normale Datei
0
application/views/scripts/config/add-recipient-cc.phtml
Normale Datei
135
application/views/scripts/config/databases.phtml
Normale Datei
135
application/views/scripts/config/databases.phtml
Normale Datei
|
|
@ -0,0 +1,135 @@
|
|||
<div id="panel_db" class="panel">
|
||||
<fieldset>
|
||||
<legend><?php echo $this->lang->L_CONNECTIONPARS;?></legend>
|
||||
<div id="connection-params" style="display:none;">
|
||||
<table style="width:100%" summary="Databases">
|
||||
<tr class="row-even">
|
||||
<td><?php echo $this->lang->L_DB_HOST;?>:</td>
|
||||
<td>
|
||||
<input class="text" type="text" name="dbhost"
|
||||
value="<?php echo $this->escape($this->dbHost);?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-odd">
|
||||
<td><?php echo $this->lang->L_DB_USER;?>:</td>
|
||||
<td><input class="text" type="text" name="dbuser"
|
||||
value="<?php echo$this->escape($this->dbUser);?>" size="20" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td><?php echo $this->lang->L_DB_PASS;?>:</td>
|
||||
<td><input class="text" type="password" name="dbpass"
|
||||
value="<?php echo $this->escape($this->dbPass);?>" size="20" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-odd">
|
||||
<td colspan="2">
|
||||
<br /><strong><?php echo $this->lang->L_EXTENDEDPARS;?></strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td><?php echo $this->lang->L_PORT;?>:</td>
|
||||
<td>
|
||||
<input class="text" type="text" name="dbport"
|
||||
value="<?php echo $this->escape($this->dbPort);?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-odd">
|
||||
<td><?php echo $this->lang->L_SOCKET;?>:</td>
|
||||
<td>
|
||||
<input class="text" type="text" name="dbsocket"
|
||||
value="<?php echo $this->escape($this->dbSocket);?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td><?php echo $this->lang->L_ADD_DB_MANUALLY;?>:</td>
|
||||
<td>
|
||||
<input class="text" type="text" name="add_db_manual" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->dbAddedMessage > '') { ?>
|
||||
<tr class="row-odd">
|
||||
<td colspan="2" class="error">
|
||||
<?php echo $this->escape($this->dbAddedMessage);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="row-even">
|
||||
<td> </td>
|
||||
<td>
|
||||
<p style="padding-left:8px;">
|
||||
<button class="Formbutton" type="submit" name="save">
|
||||
<?php echo $this->getIcon('save');?> <?php echo $this->lang->L_SAVE;?>
|
||||
</button>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#toggler').toggle(
|
||||
function(){
|
||||
$('#connection-params').slideDown(400);
|
||||
$('#toggleImage').attr('src', '<?php echo $this->getIconSrc("ArrowUp", 16);?>');
|
||||
}, function(){
|
||||
$('#connection-params').slideUp(400);
|
||||
$('#toggleImage').attr('src', '<?php echo $this->getIconSrc("ArrowDown", 16);?>');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<button type="button" class="Formbutton" id="toggler">
|
||||
<img id="toggleImage" src="<?php echo $this->getIconSrc("ArrowDown", 16);?>" alt="" /> <?php echo $this->lang->L_FADE_IN_OUT;?>
|
||||
</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend><?php echo $this->lang->L_DB_BACKUPPARS;?></legend>
|
||||
<table style="width:100%" summary="Backup parameters">
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<th><?php echo $this->lang->L_DB;?></th>
|
||||
<th class="left"><?php echo $this->lang->L_DUMP;?></th>
|
||||
<th><?php echo $this->lang->L_PREFIX;?></th>
|
||||
<th><?php echo $this->lang->L_COMMAND_BEFORE_BACKUP;?></th>
|
||||
<th><?php echo $this->lang->L_COMMAND_AFTER_BACKUP;?></th>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td colspan="2"> </td>
|
||||
<td class="left" colspan="4">
|
||||
<a href="javascript:SelectMD(true,'<?php echo $this->nrOfDatabases;?>')"
|
||||
class="small"><?php echo $this->getIcon('plus');?>
|
||||
</a>
|
||||
<a href="javascript:SelectMD(false,'<?php echo $this->nrOfDatabases;?>')"
|
||||
class="small"><?php echo $this->getIcon('minus');?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$dbs = $this->config->get('config.databases');
|
||||
echo $this->partial(
|
||||
'config/databases/listDbs.phtml',
|
||||
array('databases' => $dbs,
|
||||
'dbActual' => $this->config->get('dynamic.dbActual'),
|
||||
'parent' => $this,
|
||||
)
|
||||
);
|
||||
?>
|
||||
<tr class="row-even">
|
||||
<td colspan="2"> </td>
|
||||
<td class="left" colspan="4">
|
||||
<a href="javascript:SelectMD(true,'<?php echo $this->nrOfDatabases;?>')"
|
||||
class="small"><?php echo $this->getIcon('plus');?></a>
|
||||
<a href="javascript:SelectMD(false,'<?php echo $this->nrOfDatabases;?>')"
|
||||
class="small"><?php echo $this->getIcon('minus');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->nrOfDatabases == 0) { ?>
|
||||
<tr><td><?php echo $this->lang->L_NO_DB_FOUND;?></td></tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
36
application/views/scripts/config/databases/listDbs.phtml
Normale Datei
36
application/views/scripts/config/databases/listDbs.phtml
Normale Datei
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
$i =0;
|
||||
foreach ($this->databases as $db => $val) {
|
||||
$rowclass = $this->cycle(array('row-even','row-odd'))->next();
|
||||
if ($db == $this->dbActual) {
|
||||
$rowclass = 'row-highlight';
|
||||
}
|
||||
?>
|
||||
|
||||
<tr class="<?php echo $rowclass;?>">
|
||||
<td class="right"><?php echo$i+1;?>.</td>
|
||||
<td>
|
||||
<label for="db_multidump_<?php echo$i;?>" style="display:block">
|
||||
<?php echo $db;?>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="db_multidump_<?php echo$i;?>"
|
||||
name="db_multidump_<?php echo$i;?>"
|
||||
value="db_multidump_<?php echo$i;?>"
|
||||
<?php if ($val['dump'] == 1) {?>
|
||||
checked="checked"
|
||||
<?php } ?>
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="text" name="dbpraefix_<?php echo$i;?>"
|
||||
size="10" value="<?php echo $this->escape($val['prefix']);?>" />
|
||||
</td>
|
||||
<td><?php echo $this->escape($val['command_before_dump']);?></td>
|
||||
<td><?php echo $this->escape($val['command_after_dump']);?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
254
application/views/scripts/config/index.phtml
Normale Datei
254
application/views/scripts/config/index.phtml
Normale Datei
|
|
@ -0,0 +1,254 @@
|
|||
<?php
|
||||
$addReciptientCcUrl = $this->url(
|
||||
array(
|
||||
'controller' => 'config',
|
||||
'action' => 'add.Recipient.Cc',
|
||||
),
|
||||
null,
|
||||
true
|
||||
);
|
||||
$deleteReciptientCcUrl = $this->url(
|
||||
array(
|
||||
'controller' => 'config',
|
||||
'action' => 'delete.Recipient.Cc',
|
||||
),
|
||||
null,
|
||||
true
|
||||
);
|
||||
$addFtpConnectionUrl = $this->url(
|
||||
array(
|
||||
'controller' => 'config',
|
||||
'action' => 'add.Ftp.Connection',
|
||||
),
|
||||
null,
|
||||
true
|
||||
);
|
||||
$deleteFtpConnectionUrl = $this->url(
|
||||
array(
|
||||
'controller' => 'config',
|
||||
'action' => 'delete.Ftp.Connection',
|
||||
),
|
||||
null,
|
||||
true
|
||||
);
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
$(function() {
|
||||
$("#tabs").tabs({
|
||||
event: 'click'
|
||||
});
|
||||
|
||||
$('#tabs').bind('tabsselect', function(event, ui) {
|
||||
$('#selectedTab').val(ui.panel.id);
|
||||
});
|
||||
|
||||
/* make sure to reopen the same panel after reloading or saving */
|
||||
$("#tabs").tabs('select', '#<?php echo $this->currentTab;?>');
|
||||
|
||||
/* init dialog box */
|
||||
$("#dialog").dialog({
|
||||
modal: true,
|
||||
buttons: {
|
||||
Ok: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
}
|
||||
});
|
||||
/* turn off autocomplete for password fields in form */
|
||||
$('input[type=password]').each( function() {
|
||||
$(this).attr('autocomplete','off');
|
||||
});
|
||||
|
||||
/* enable/disabled dependant input elements and set correct state */
|
||||
$('input[class*="toggler"]').each(
|
||||
function (el) {
|
||||
if ($(this).attr('checked') == true) {
|
||||
// get onclick function
|
||||
var onclick = $(this).attr('onclick').toString();
|
||||
// remove line breaks
|
||||
onclick = onclick.replace(/\n/g, '');
|
||||
onclick = onclick.replace(/\r/g, '');
|
||||
// extract myToggle function call
|
||||
var exp = /(.*){(.*)}(.*)/;
|
||||
exp.exec(onclick);
|
||||
var call = RegExp.$2;
|
||||
call = call.replace(');', '');
|
||||
call = call.replace(/"/g, '');
|
||||
call = call.replace(/'/g, '');
|
||||
call = call.replace(/ /g, '');
|
||||
// extract myToggle params
|
||||
var params = call.split(',');
|
||||
// call function to set state
|
||||
myToggle(this, params[1], params[2]);
|
||||
}
|
||||
});
|
||||
toggleEmailProgram();
|
||||
});
|
||||
|
||||
function myToggle(obj, enableVal, myClass) {
|
||||
if ($(obj).attr('value') == enableVal) {
|
||||
$('.'+myClass).each(
|
||||
function () {
|
||||
$(this).removeAttr('disabled');
|
||||
});
|
||||
} else {
|
||||
$('.'+myClass).each(
|
||||
function () {
|
||||
$(this).attr('disabled', 'disabled');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function myHide(jqObject) {
|
||||
if (jqObject.css('display') == 'block') {
|
||||
jqObject.hide();
|
||||
}
|
||||
}
|
||||
|
||||
function myShow(jqObject) {
|
||||
if (jqObject.css('display') == 'none') {
|
||||
jqObject.show();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleEmailProgram() {
|
||||
var value = $('#toggleEmailSettings').val();
|
||||
switch (value) {
|
||||
case 'php':
|
||||
myHide($('.sendmailConfig'));
|
||||
myHide($('.smtpConfig'));
|
||||
break;
|
||||
case 'sendmail':
|
||||
myShow($('.sendmailConfig'));
|
||||
myHide($('.smtpConfig'));
|
||||
break;
|
||||
case 'smtp':
|
||||
myHide($('.sendmailConfig'));
|
||||
myShow($('.smtpConfig'));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//enable inputs right before submit for not losing
|
||||
//content of disabled inputs
|
||||
function enableInputs( myClass) {
|
||||
$('input[class*="Toggle"]').each(
|
||||
function () {
|
||||
$(this).removeAttr('disabled');
|
||||
});
|
||||
}
|
||||
|
||||
function addEmailReciptientCc()
|
||||
{
|
||||
$('#config_form').attr('action','<?php echo $addReciptientCcUrl; ?>');
|
||||
$('#config_form').submit();
|
||||
}
|
||||
|
||||
function deleteEmailReciptientCc(recipientId)
|
||||
{
|
||||
setParam(recipientId);
|
||||
$('#config_form').attr('action','<?php echo $deleteReciptientCcUrl; ?>');
|
||||
$('#config_form').submit();
|
||||
}
|
||||
|
||||
function addFtpConnection()
|
||||
{
|
||||
$('#config_form').attr('action','<?php echo $addFtpConnectionUrl; ?>');
|
||||
$('#config_form').submit();
|
||||
}
|
||||
|
||||
function deleteFtpConnection(recipientId)
|
||||
{
|
||||
setParam(recipientId);
|
||||
$('#config_form').attr('action','<?php echo $deleteFtpConnectionUrl; ?>');
|
||||
$('#config_form').submit();
|
||||
}
|
||||
|
||||
function setParam(value)
|
||||
{
|
||||
$('#param').val(value);
|
||||
}
|
||||
|
||||
/*]]>*/
|
||||
</script>
|
||||
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_CONFIG_HEADLINE;?>: <?php echo $this->config->get('dynamic.configFile');?>
|
||||
<span class="small">(<?php echo $this->lang->L_MSD_MODE;?>: <?php echo $this->config->get('config.general.mode');?>)</span></h2>
|
||||
<form method="post" action="<?php
|
||||
echo $this->url(
|
||||
array(
|
||||
'controller' => 'config',
|
||||
'action' => 'index'
|
||||
),
|
||||
null,
|
||||
true
|
||||
);
|
||||
?>"
|
||||
id="config_form" onsubmit="enableInputs('Toggle');">
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#tab_general">
|
||||
<?php echo $this->getIcon('Configure', '', 16);?><?php echo $this->lang->L_GENERAL;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_dbuser">
|
||||
<?php echo $this->getIcon('Database', '', 16);?><?php echo $this->lang->L_DBS;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_interface">
|
||||
<?php echo $this->getIcon('Lookup', '', 16);?><?php echo $this->lang->L_CONFIG_INTERFACE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_autodelete">
|
||||
<?php echo $this->getIcon('DustbinFull', '', 16);?><?php echo $this->lang->L_CONFIG_AUTODELETE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_email">
|
||||
<?php echo $this->getIcon('Options', '', 16);?><?php echo $this->lang->L_EMAIL;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_ftp">
|
||||
<?php echo $this->getIcon('RemoteAccess', '', 16);?><?php echo $this->lang->L_FTP;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_cronscript">
|
||||
<?php echo $this->getIcon('Options', '', 16);?><?php echo $this->lang->L_CRONSCRIPT;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab_configfiles">
|
||||
<?php echo $this->getIcon('CardFile', '', 16);?><?php echo $this->lang->L_CONFIGFILES;?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?php echo $this->form; ?>
|
||||
<div id="tab_configfiles">coming soon...</div>
|
||||
</div>
|
||||
</form>
|
||||
<br /><br /><br /><br />
|
||||
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
<?php if (count((array) $this->config->get('dynamic.databases')) == 0): ?>
|
||||
mySlideDown('connection-params');
|
||||
<?php endif; ?>
|
||||
/*]]>*/
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->jsMessage > '') { ?>
|
||||
<div id="dialog" title="Information">
|
||||
<p><?php echo $this->jsMessage; ?></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren