Struggeling with relocating
Dieser Commit ist enthalten in:
Commit
89ea01c429
301 geänderte Dateien mit 59926 neuen und 0 gelöschten Zeilen
266
tpl/dump/dump.tpl
Normale Datei
266
tpl/dump/dump.tpl
Normale Datei
|
|
@ -0,0 +1,266 @@
|
|||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
var scroll_log=true;
|
||||
function doDump()
|
||||
{
|
||||
new Ajax.Request('ajax/dump_ajax.php?MySQLDumper={SESSION_ID}', { method:'get',
|
||||
onSuccess: function(transport,json){
|
||||
if (!(transport.responseText.substr(0,21)=='{"backup_in_progress"'))
|
||||
{
|
||||
// unnormal error returned
|
||||
var g = new Growler({location:"{NOTIFICATION_POSITION}", width:"650px"});
|
||||
g.growl(transport.responseText, {header:"<strong>{L_ERROR}<\/strong>:", className:"message", sticky:true, speedin: 1.2 });
|
||||
$('ajaxload').fade();
|
||||
}
|
||||
else
|
||||
{
|
||||
var json = transport.responseText.evalJSON(true);
|
||||
parseDumpResponse(json);
|
||||
}
|
||||
},
|
||||
onFailure: function(){ alert('Something with the Ajax-Request went wrong. Maybe a server timout happened?') }
|
||||
});
|
||||
}
|
||||
|
||||
function parseDumpResponse(json)
|
||||
{
|
||||
if (json['config_file'])
|
||||
{
|
||||
// values only submitted once because they don't change during backup process
|
||||
$('config_file').innerHTML = json['config_file'];
|
||||
$('dump_encoding').innerHTML = json['dump_encoding'];
|
||||
$('speed_min').innerHTML = json['speed_min'];
|
||||
$('speed_max').innerHTML = json['speed_max'];
|
||||
$('tables_total').innerHTML = json['tables_total'];
|
||||
$('records_total').innerHTML = json['records_total'];
|
||||
$('comment').innerHTML = json['comment'];
|
||||
}
|
||||
$('tables_optimized').innerHTML=json['tables_optimized'];
|
||||
if (json['dbs_to_backup']) $('dbs_to_backup').innerHTML = json['dbs_to_backup'] ;
|
||||
$('actual_database').innerHTML = json['actual_database'] ;
|
||||
if (json['actual_table']>'') $('actual_table').innerHTML = '`'+json['actual_database']+'`.`'+json['actual_table']+'`' ;
|
||||
else $('actual_table').innerHTML='';
|
||||
$('actual_table_nr').innerHTML = json['actual_table_nr'];
|
||||
$('table_records_total').innerHTML = json['table_records_total'];
|
||||
$('records_saved_total').innerHTML = json['records_saved_total'];
|
||||
$('filename').innerHTML = json['filename'];
|
||||
$('filesize').innerHTML = json['filesize'];
|
||||
$('elapsed_time').innerHTML = json['elapsed_time'];
|
||||
if (json['estimated_end']) $('estimated_end').innerHTML=json['estimated_end'];
|
||||
$('page_refreshs').innerHTML = json['page_refreshs'];
|
||||
$('record_offset_start').innerHTML = json['record_offset_start'];
|
||||
$('record_offset_end').innerHTML = json['record_offset_end'];
|
||||
$('progress_table_percent').innerHTML = json['progress_table_percent'];
|
||||
$('speed').innerHTML = json['speed'];
|
||||
$('nr_of_errors').innerHTML = json['nr_of_errors'];
|
||||
|
||||
if (json['multipart_part']) $('multipart_part').innerHTML = json['multipart_part'];
|
||||
if (json['prefix']) $('prefix').innerHTML = json['prefix'];
|
||||
// Logs
|
||||
if (json['actions']) $('log').innerHTML+= json['actions']+'<br />';
|
||||
if (json['errors']) $('log').innerHTML+= '<span class="error">'+json['errors']+'<\/span><br />';
|
||||
//scroll log to bottom
|
||||
if (scroll_log && (json['actions'] || json['errors'])) $('log').scrollTop = $('log').scrollHeight;
|
||||
|
||||
// progressbars
|
||||
$('progressbar_table').morph( 'progressbar_table', {
|
||||
style: 'width:'+json['progressbar_table_width']+'px;',
|
||||
duration: 0.3
|
||||
});
|
||||
if (json['progress_overall_percent'])
|
||||
{
|
||||
$('progress_overall_percent').innerHTML = json['progress_overall_percent'];
|
||||
$('progressbar_overall').morph( 'progressbar_overall', {
|
||||
style: 'width:'+json['progressbar_overall_width']+'px;',
|
||||
duration: 0.3
|
||||
});
|
||||
}
|
||||
|
||||
$('speedbar').morph( 'speedbar', {
|
||||
style: 'width:'+json['speedbar_width']+'px;',
|
||||
duration: 0.3
|
||||
});
|
||||
|
||||
if (json['backup_in_progress']==1) doDump(); // Backup not finished -> continue
|
||||
else self.location.href='index.php?p=dump&action=done&MySQLDumper={SESSION_ID}';
|
||||
|
||||
}
|
||||
Event.observe(window, 'load', doDump);
|
||||
/*]]>*/
|
||||
</script>
|
||||
<div id="content">
|
||||
<h2>{L_DUMP_HEADLINE}</h2>
|
||||
|
||||
<div id="dump_infos">
|
||||
<table class="bdr">
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_CONFIG}:</td>
|
||||
<td class="small right"><span id="config_file"></span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_COMMENT}:</td>
|
||||
<td class="small right"><span id="comment"></span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_CHARSET}:</td>
|
||||
<td class="small right"><span id="dump_encoding"></span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_GZIP_COMPRESSION}:</td>
|
||||
<td class="small right">{GZIP}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_DUMP_FILENAME}:</td>
|
||||
<td class="small right"><span id="filename">{DUMP_FILENAME}</span></td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_FILESIZE}:</td>
|
||||
<td class="small right"><span id="filesize">{DUMP_FILESIZE}</span></td>
|
||||
</tr>
|
||||
<!-- BEGIN MULTIPART -->
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_MULTI_PART}:</td>
|
||||
<td class="small right">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="small">{L_MULTIPART_ACTUAL_PART}:</td>
|
||||
<td class="small right"><span id="multipart_part"></span></td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_MULTIPART_SIZE}:</td>
|
||||
<td class="small right">{MULTIPART.SIZE}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END MULTIPART -->
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_DBS}:</td>
|
||||
<td class="small right"><span id="dbs_to_backup"></span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_INFO_ACTDB}:</td>
|
||||
<td class="small right"><span id="actual_database"></span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_SAVING_TABLE}:</td>
|
||||
<td class="small right">
|
||||
<span id="actual_table_nr"></span> {L_OF} <span id="tables_total">{TABLE_COUNT}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_PREFIX}:</td>
|
||||
<td class="small right"><span id="prefix"></span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow">
|
||||
<td colspan="2" class="small right">
|
||||
<span id="tables_optimized"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_ERROR}:</td>
|
||||
<td class="small right">
|
||||
<strong><span id="nr_of_errors"></span></strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow" style="line-height:12px;"><td colspan="2"> </td></tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small nowrap">{L_PROGRESS_TABLE}:</td>
|
||||
<td class="small"><strong><span id="actual_table"></span></strong></td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow1">
|
||||
<td> </td>
|
||||
<td>
|
||||
<table style="width:400px">
|
||||
<tr>
|
||||
<td style="width:60px" class="small right nowrap"><span id="progress_table_percent">0</span> %</td>
|
||||
<td>
|
||||
<img src="{ICONPATH}progressbar_dump.gif" id="progressbar_table" alt="" width="0" height="16" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="small">
|
||||
{L_ENTRY} <strong><span id="record_offset_start"></span></strong> {L_UPTO}
|
||||
<strong><span id="record_offset_end"></span></strong> {L_OF} <strong><span id="table_records_total"></span></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow" style="line-height:12px;"><td colspan="2"> </td></tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_RECORDS_PER_PAGECALL}:</td>
|
||||
<td>
|
||||
<table width="400">
|
||||
<tr>
|
||||
<td style="width:60px" valign="top" class="small right">
|
||||
<span id="speed"></span>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<img src="{ICONPATH}progressbar_speed.gif" id="speedbar" alt="" width="0" height="14" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="nowrap small"><span id="speed_min"></span></td>
|
||||
<td class="nowrap small right"><span id="speed_max"></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow" style="line-height:12px;">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small nowrap">{L_PROGRESS_OVER_ALL}:</td>
|
||||
<td>
|
||||
<table style="width:400px">
|
||||
<tr>
|
||||
<td style="width:60px" class="right small"><span id="progress_overall_percent"></span> %</td>
|
||||
<td class="small">
|
||||
<img src="{ICONPATH}progressbar_dump.gif" id="progressbar_overall" alt="" width="0" height="16" /><br />
|
||||
{L_RECORDS} <strong><span id="records_saved_total"></span></strong>
|
||||
{L_OF} <strong><span id="records_total"></span></strong><br />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small nowrap">{L_PAGE_REFRESHS}:</td>
|
||||
<td class="small right"><span id="page_refreshs">0</span></td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small nowrap">{L_DURATION}:</td>
|
||||
<td class="small right"><span id="elapsed_time"></span></td>
|
||||
</tr>
|
||||
<tr class="dbrow">
|
||||
<td class="small nowrap">{L_ESTIMATED_END}:</td>
|
||||
<td class="small right"><span id="estimated_end"></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h3>{L_LOG}:</h3>
|
||||
<div id="log" class="bdr small" style="height:100px;overflow:auto;" onmouseover="scroll_log=false" onmouseout="scroll_log=true"></div>
|
||||
</div>
|
||||
<p>
|
||||
<br /><br />
|
||||
</p>
|
||||
80
tpl/dump/dump_finished.tpl
Normale Datei
80
tpl/dump/dump_finished.tpl
Normale Datei
|
|
@ -0,0 +1,80 @@
|
|||
<div id="content">
|
||||
<h2>{L_DUMP}</h2>
|
||||
<p class="Formbutton">
|
||||
<button class="Formbutton" onclick="self.location.href='index.php?p=files'">{ICON_OPEN_FILE} {L_FILE_MANAGE}</button>
|
||||
<button class="Formbutton" onclick="self.location.href='index.php?p=sql&action=list_databases'">{ICON_VIEW}
|
||||
{L_BACK_TO_OVERVIEW}</button>
|
||||
<button class="Formbutton" onclick="self.location.href='index.php?p=log'">{ICON_VIEW} {L_LOG}</button>
|
||||
</p>
|
||||
<h3>{L_DONE}</h3>
|
||||
<p class="small">{TIME_ELAPSED}, {PAGE_REFRESHS} {L_PAGE_REFRESHS}<br />
|
||||
{MSG}</p>
|
||||
<!-- BEGIN MULTIDUMP -->
|
||||
{MULTIDUMP.MSG}.<br />
|
||||
<!-- END MULTIDUMP -->
|
||||
<br />
|
||||
|
||||
<h3>{L_FILES}:</h3>
|
||||
<div class="small" style="max-height: 200px; overflow: auto">
|
||||
<table class="bdr">
|
||||
<tr class="thead">
|
||||
<th>#</th>
|
||||
<th>{L_FILE}</th>
|
||||
<th colspan="2">{L_FILESIZE}</th>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN FILE -->
|
||||
<tr class="{FILE.ROWCLASS} small">
|
||||
<td class="right">{FILE.NR}.</td>
|
||||
<td class="small"><a href="{BACKUPPATH}{FILE.FILENAME}" class="new-window">{FILE.FILENAME}</a></td>
|
||||
<td class="small"><a href="index.php?p=files&action=dl&f={FILE.FILENAME_URLENCODED}">{ICON_OPEN_FILE}</a>
|
||||
</td>
|
||||
<td class="small right">{FILE.FILESIZE}</td>
|
||||
</tr>
|
||||
<!-- END FILE -->
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<!-- BEGIN ERROR -->
|
||||
<h3>{L_ERROR}:</h3>
|
||||
<div class="small" style="max-height: 200px; overflow: auto">
|
||||
<table class="bdr">
|
||||
<tr class="thead">
|
||||
<th>{L_TIMESTAMP}</th>
|
||||
<th>{L_ERROR}</th>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN ERRORMSG -->
|
||||
<tr class="{ERROR.ERRORMSG.ROWCLASS} small">
|
||||
<td class="right small nowrap">{ERROR.ERRORMSG.TIMESTAMP}</td>
|
||||
<td class="small nowrap">{ERROR.ERRORMSG.MSG}</td>
|
||||
</tr>
|
||||
<!-- END MSG -->
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<!-- END ERROR -->
|
||||
<h3>{L_LOG}:</h3>
|
||||
<div class="small" style="height: 300px; overflow: auto">
|
||||
<table class="bdr">
|
||||
<tr class="thead">
|
||||
<th>#</th>
|
||||
<th>{L_TIMESTAMP}</th>
|
||||
<th>{L_ACTION}</th>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN ACTION -->
|
||||
<tr class="{ACTION.ROWCLASS} small">
|
||||
<td class="right small nowrap">{ACTION.NR}.</td>
|
||||
<td class="small nowrap">{ACTION.TIMESTAMP}</td>
|
||||
<td class="small">{ACTION.ACTION}</td>
|
||||
</tr>
|
||||
<!-- END ACTION -->
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<button class="Formbutton" onclick="self.location.href='index.php?p=files'">{ICON_OPEN_FILE} {L_FILE_MANAGE}</button>
|
||||
<button class="Formbutton" onclick="self.location.href='index.php?p=sql&action=list_databases'">{ICON_VIEW}
|
||||
{L_BACK_TO_OVERVIEW}</button>
|
||||
<button class="Formbutton" onclick="self.location.href='index.php?p=log'">{ICON_VIEW} {L_LOG}</button>
|
||||
</div>
|
||||
221
tpl/dump/dump_prepare.tpl
Normale Datei
221
tpl/dump/dump_prepare.tpl
Normale Datei
|
|
@ -0,0 +1,221 @@
|
|||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
function show_perl_output(perlsource)
|
||||
{
|
||||
$('perloutput_div').appear();
|
||||
$('perloutput').src=perlsource;
|
||||
}
|
||||
|
||||
Event.observe(window, 'load', loadTabs, false);
|
||||
function loadTabs()
|
||||
{
|
||||
var tabs = new tabset('headnavi');
|
||||
tabs.autoActivate($('tab_php'));
|
||||
}
|
||||
/*]]>*/
|
||||
</script>
|
||||
|
||||
<div id="content">
|
||||
<h2>{L_DUMP}</h2>
|
||||
|
||||
<div id="headnavi">
|
||||
<ul class="Formbutton" id="tabnav">
|
||||
<li><a href="#tab_php" id="tab_php" class="tab Formbutton">{L_DUMP} PHP</a></li>
|
||||
<li><a href="#tab_perl" id="tab_perl" class="tab Formbutton">{L_DUMP} Perl</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>{L_FM_DUMPSETTINGS} ({L_CONFIG_HEADLINE}: {CONFIG_FILE})</h3>
|
||||
<table class="bdr">
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_DBS}:</td>
|
||||
<td class="small right">
|
||||
{NR_OF_DBS}<br />
|
||||
{DBS_TO_BACKUP}</td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_TABLES}:</td>
|
||||
<td class="small right">{TABLES_TOTAL}</td>
|
||||
</tr>
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_RECORDS}:</td>
|
||||
<td class="small right">{RECORDS_TOTAL}</td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_DATASIZE}:</td>
|
||||
<td class="small right">{DATASIZE_TOTAL}<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td colspan="2" class="small">
|
||||
<span class="small right">({L_DATASIZE_INFO}.)</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_GZIP}:</td>
|
||||
<td class="small right">
|
||||
<!-- BEGIN GZIP_ACTIVATED -->
|
||||
{L_YES}
|
||||
<!-- END GZIP_ACTIVATED -->
|
||||
|
||||
<!-- BEGIN GZIP_NOT_ACTIVATED -->
|
||||
{L_NO}
|
||||
<!-- END GZIP_NOT_ACTIVATED -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN NO_MULTIPART -->
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_MULTI_PART}:</td>
|
||||
<td class="small right" colspan="2">{L_NO}</td>
|
||||
</tr>
|
||||
<!-- END NO_MULTIPART -->
|
||||
|
||||
<!-- BEGIN MULTIPART -->
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_MULTI_PART}:</td>
|
||||
<td class="small right">{L_YES}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="small"> {L_MULTIPART_SIZE}:</td>
|
||||
<td class="small right">{MULTIPART.SIZE}</td>
|
||||
</tr>
|
||||
<!-- END MULTIPART -->
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_SEND_MAIL_FORM}:</td>
|
||||
<td class="small right">
|
||||
<!-- BEGIN NO_SEND_MAIL -->
|
||||
{L_NO}
|
||||
<!-- END NO_SEND_MAIL -->
|
||||
|
||||
<!-- BEGIN SEND_MAIL -->
|
||||
<table style="width:100%">
|
||||
<!-- BEGIN ATTACH_BACKUP -->
|
||||
<tr class="dbrow">
|
||||
<td class="small" colspan="2">{L_ATTACH_BACKUP}</td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_MAX_UPLOAD_SIZE}:</td>
|
||||
<td class="small right">{SEND_MAIL.ATTACH_BACKUP.SIZE}</td>
|
||||
</tr>
|
||||
<!-- END ATTACH_BACKUP -->
|
||||
|
||||
<!-- BEGIN DONT_ATTACH_BACKUP -->
|
||||
<tr class="dbrow">
|
||||
<td class="small" colspan="2">{L_DONT_ATTACH_BACKUP}</td>
|
||||
</tr>
|
||||
<!-- END DONT_ATTACH_BACKUP -->
|
||||
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_EMAIL_RECIPIENT}:</td>
|
||||
<td class="small right">{SEND_MAIL.RECIPIENT}</td>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN CC -->
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_EMAIL_CC}:</td>
|
||||
<td class="small right">{SEND_MAIL.CC.EMAIL_ADRESS}</td>
|
||||
</tr>
|
||||
<!-- END CC -->
|
||||
|
||||
</table>
|
||||
<!-- END SEND_MAIL -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN FTP -->
|
||||
<tr class="{FTP.ROWCLASS}">
|
||||
<td class="small">{L_FTP_TRANSFER} {FTP.NR}:</td>
|
||||
<td class="small">
|
||||
<table style="width:100%">
|
||||
<!-- BEGIN CONNECTION -->
|
||||
<tr class="dbrow">
|
||||
<td class="small">{L_FTP_SERVER}, {L_FTP_PORT}:</td>
|
||||
<td class="small right">{FTP.CONNECTION.SERVER}:{FTP.CONNECTION.PORT}</td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td class="small">{L_FTP_DIR}:</td>
|
||||
<td class="small right">{FTP.CONNECTION.DIR}</td>
|
||||
</tr>
|
||||
<!-- END CONNECTION -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END FTP -->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="panel_php" class="panel" style="display:none">
|
||||
<form id="fm" method="post" action="index.php?p=dump&action=select_tables">
|
||||
<h3>{L_DUMP} PHP ({L_CONFIG_HEADLINE}: {CONFIG_FILE})</h3>
|
||||
<div>
|
||||
<button class="Formbutton" name="dump" type="submit">{L_FM_STARTDUMP}</button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<table class="bdr">
|
||||
<!-- BEGIN TABLESELECT -->
|
||||
<tr class="dbrow1">
|
||||
<td><label for="tableselect">{L_FM_SELECTTABLES}:</label></td>
|
||||
<td><input type="checkbox" class="checkbox noleftmargin" name="tableselect" id="tableselect" value="1" /></td>
|
||||
</tr>
|
||||
<!-- END TABLESELECT -->
|
||||
<!-- BEGIN MODE_EXPERT -->
|
||||
<tr class="dbrow1">
|
||||
<td><label for="backup_using_updates">Update (REPLACE Command):</label></td>
|
||||
<td><input type="checkbox" class="checkbox noleftmargin" name="backup_using_updates" id="backup_using_updates" value="1" /></td>
|
||||
</tr>
|
||||
<!-- END MODE_EXPERT -->
|
||||
<tr class="dbrow">
|
||||
<td><label for="comment">{L_FM_COMMENT}:</label></td>
|
||||
<td>
|
||||
<input type="text" class="text noleftmargin" style="width:260px;" id ="comment" name="comment" value="{TABLESELECT.COMMENT}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="dbrow1">
|
||||
<td>
|
||||
<label for="sel_dump_encoding">{L_FM_CHOOSE_ENCODING}:</label>
|
||||
</td>
|
||||
<td>
|
||||
<select name="sel_dump_encoding" id="sel_dump_encoding">
|
||||
{POSSIBLE_DUMP_ENCODINGS}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="panel_perl" class="panel" style="display:none">
|
||||
<h3>{L_DUMP} PERL ({L_CONFIG_HEADLINE}: {CONFIG_FILE})</h3>
|
||||
<button class="Formbutton" name="DoCronscript" onclick="show_perl_output('{PERL_HTTP_CALL}')">{L_DOCRONBUTTON}</button>
|
||||
<button class="Formbutton" name="DoSimpleTest" onclick="show_perl_output('{PERL_TEST}')">{L_DOSIMPLETEST}</button>
|
||||
<button class="Formbutton" name="DoPerlTest" onclick="show_perl_output('{PERL_MODULTEST}')">{L_DOPERLTEST}</button>
|
||||
<br />
|
||||
|
||||
<table class="bdr" style="width:90%">
|
||||
<tr class="dbrow1">
|
||||
<td>{L_PERLOUTPUT2}:</td>
|
||||
<td style="width:60%"><input class="text" style="width:95%" type="text" value="{PERL_HTTP_CALL}" /></td>
|
||||
</tr>
|
||||
<tr class="dbrow">
|
||||
<td>{L_PERLOUTPUT3}:</td>
|
||||
<td><input class="text" style="width:95%" type="text" value="{PERL_CRONTAB_CALL}" /></td>
|
||||
</tr>
|
||||
<tr class="dbrow">
|
||||
<td>{L_PERLOUTPUT1}:</td>
|
||||
<td><input class="text" style="width:95%" type="text" value="{PERL_ABSOLUTE_PATH_OF_CONFIGDIR}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<div id="perloutput_div" style="width:100%;height:200px;overflow:hidden;display:none;">
|
||||
<iframe id="perloutput" style="width:100%;height:100%;"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
51
tpl/dump/selectTables.tpl
Normale Datei
51
tpl/dump/selectTables.tpl
Normale Datei
|
|
@ -0,0 +1,51 @@
|
|||
<div id="content">
|
||||
<h2>{PAGETITLE}</h2>
|
||||
<h3>{L_DB}: {DATABASE}</h3>
|
||||
<form id="frm_tbl" action="index.php?p=dump&action=do_dump&MySQLDumper={SESSION_ID}" method="post">
|
||||
<p>
|
||||
<button type="button" class="Formbutton" onclick="checkAllCheckboxes('frm_tbl',true);">{ICON_OK} {L_SELECTALL}</button>
|
||||
<button type="button" class="Formbutton" onclick="checkAllCheckboxes('frm_tbl',false);">{ICON_DELETE}
|
||||
{L_DESELECTALL}</button>
|
||||
<button type="submit" class="Formbutton" name="dump_tbl"
|
||||
onclick="if (!tablesChecked('frm_tbl')) { alert('{L_SQL_NOTABLESSELECTED}'); return false }">{ICON_DB}
|
||||
{L_STARTDUMP}
|
||||
</button>
|
||||
</p>
|
||||
|
||||
<table class="bdr">
|
||||
<tr class="thead">
|
||||
<th>#</th>
|
||||
<th>{L_NAME}</th>
|
||||
<th>{L_DUMP}</th>
|
||||
<th>{L_INFO_RECORDS}</th>
|
||||
<th>{L_INFO_SIZE}</th>
|
||||
<th>{L_INFO_LASTUPDATE}</th>
|
||||
<th>{L_TABLE_TYPE}</th>
|
||||
|
||||
</tr>
|
||||
<!-- BEGIN ROW -->
|
||||
<tr class="{ROW.CLASS}">
|
||||
<td class="right small">{ROW.NR}.</td>
|
||||
<td class="small"><label for="t{ROW.ID}">{ROW.TABLENAME}</label></td>
|
||||
<td class="sm" align="left"><input type="checkbox" class="checkbox" name="sel_tbl[]" id="t{ROW.ID}"
|
||||
value="{ROW.TABLENAME}" /> <!--
|
||||
<input type="checkbox" class="checkbox" name="chk_tbl_data" id="t_data{ROW.ID}" value="{ROW.TABLENAME}" />
|
||||
--></td>
|
||||
<td class="right small">{ROW.RECORDS}</td>
|
||||
<td class="right small">{ROW.SIZE}</td>
|
||||
<td class="small">{ROW.LAST_UPDATE}</td>
|
||||
<td class="small">{ROW.TABLETYPE}</td>
|
||||
</tr>
|
||||
<!-- END ROW -->
|
||||
</table>
|
||||
<p>
|
||||
<button type="button" class="Formbutton" onclick="checkAllCheckboxes('frm_tbl',true);">{ICON_OK} {L_SELECTALL}</button>
|
||||
<button type="button" class="Formbutton" onclick="checkAllCheckboxes('frm_tbl',false);">{ICON_DELETE}
|
||||
{L_DESELECTALL}</button>
|
||||
<button type="submit" class="Formbutton" name="dump_tbl"
|
||||
onclick="if (!tablesChecked(frm_tbl)) { alert('{L_SQL_NOTABLESSELECTED}'); return false }">{ICON_DB}
|
||||
{L_STARTDUMP}
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren