CC-1695 Remove Campcaster Studio and make install easier

Changing htmlUI dir structure to be better.
This commit is contained in:
paul.baranowski 2010-09-30 15:56:56 -04:00
parent acda23db88
commit c4b96da797
285 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,45 @@
<div class="content">
<div class="container_elements" style="width: 607px;">
<h1>##Backup management##</h1>
{if $EXCHANGE->getBackupToken() === false}
<p><input type="button" class="button_large" value="##Start backup now##" onClick="location.href='{$UI_HANDLER}?act=BACKUP.createBackupOpen'"></p>
<p><input type="button" class="button_large" value="##Schedule backup##" onClick="location.href='{$UI_BROWSER}?act=BACKUP.schedule'"></p>
{else}
{assign var='status' value=$EXCHANGE->createBackupCheck()}
Backup status: {$status.status}
{if $status.status === 'success'}
<p>
<input type="button" class="button" value="##Download##" onCLick="location.href='{$UI_BROWSER}?popup[]=BACKUP.createBackupDownload'">
<input type="button" class="button_large" value="##Copy backup file##" onClick="popup('{$UI_BROWSER}?popup[]=BACKUP.setLocation', 'BACKUP.selectLocation', 600, 600)">
<input type="button" class="button" value="##Close backup##" onCLick="location.href='{$UI_HANDLER}?act=BACKUP.createBackupClose'">
{/if}
{/if}
</div>
</div>
{assign var='status' value=null}
{*
{$EXCHANGE->completeTarget()}
{if $EXCHANGE->getPath() !== false}
<p>
<b>##Backup file:##</b>
<br>
{$EXCHANGE->getPath()}:
{if $EXCHANGE->checkTarget() === true}
##OK##
{else}
##Permission denied##
{/if}
</p>
{/if}
*}

View file

@ -0,0 +1,75 @@
{include file="popup/header.tpl"}
<script language='javascript'>
{literal}
if (window.scrollbars.visible == false) {
window.scrollbars.visible=true;
location.reload();
}
{/literal}
</script>
<table height="100%" width="100%">
<tr>
<td>
<center>
<table width="100%" height="100%">
<tr><td colspan=""><h1>##File browser##</h1></td></tr>
<tr>
<td colspan="6" style="white-space: nowrap;">
<form name="filebrowser"
{if !$isRestore}
onSubmit="opener.location.href='{$UI_HANDLER}?act=BACKUP.copy2target&target='+filebrowser.target.value; window.close()"
{elseif $isRestore=="scheduler"}
onSubmit="opener.location.href='{$UI_HANDLER}?act=SCHEDULER.setImportFile&target='+filebrowser.target.value; window.close()"
{else}
onSubmit="opener.location.href='{$UI_HANDLER}?act=RESTORE.setBackupFileToRestore&target='+filebrowser.target.value; window.close()"
{/if}
>
##Filename:## <br>
<input type='text' name='target' size='50' value='{$EXCHANGE->getPath()}'>
{if ($isRestore && $isFile) || !$isRestore}
<input type='submit' class='button' value='##OK##'>
{/if}
</form>
</td>
</tr>
{assign var='currdir' value=$EXCHANGE->listFolder()}
{foreach from=$currdir.subdirs item=entry key=name}
<tr class="{cycle values='blue1, blue2'}">
<td style="border-right: 1px solid #333;"><b><a href="{$UI_BROWSER}?popup[]=BACKUP.setLocation{if $isRestore}&isRestore={$isRestore}{/if}&cd={$name|escape:"url"}">{$name|truncate:50:"...":true}</b></td>
<td style="border-right: 1px solid #333;">{$entry.u|truncate:10:'...':true}</td>
<td style="border-right: 1px solid #333;">{$entry.g|truncate:10:'...':true}</td>
<td style="border-right: 1px solid #333;">{if $entry.r}r{/if}</td>
<td style="border-right: 1px solid #333;">{if $entry.w}w{/if}</td>
<td>{if $entry.x}x{/if}</td>
</tr>
{/foreach}
{foreach from=$currdir.files item=entry key=name}
<tr class="{cycle values='blue1, blue2'}">
<td style="border-right: 1px solid #333;"><a href="{$UI_BROWSER}?popup[]=BACKUP.setFile{if $isRestore}&isRestore={$isRestore}{/if}&file={$name|escape:"url"}">{$name|truncate:50:"...":true}</td>
<td style="border-right: 1px solid #333;">{$entry.u|truncate:10:'...':true}</td>
<td style="border-right: 1px solid #333;">{$entry.g|truncate:10:'...':true}</td>
<td style="border-right: 1px solid #333;">{if $entry.r}r{/if}</td>
<td style="border-right: 1px solid #333;">{if $entry.w}w{/if}</td>
<td>{if $entry.x}x{/if}</td>
</tr>
{/foreach}
</table>
</center>
</td>
</tr>
</table>
<script language="javascript">
{if $EXCHANGE->errorMsg}
alert("{$EXCHANGE->errorMsg|escape:'quotes'}");
{/if}
</script>
</body>
</html>

View file

@ -0,0 +1,28 @@
<div class="content">
<div class="container_elements" style="width: 607px;">
<h1>##Restore backup##</h1>
{assign var='token' value=$EXCHANGE->getRestoreToken()}
{if $token === false}
<input type="button" class="button_large" value="##Choose backup file##" onClick="popup('{$UI_BROWSER}?popup[]=BACKUP.setLocation&isRestore=1', 'RESTORE.backupFile', 600, 600)">
{else}
{assign var='status' value=$EXCHANGE->backupRestoreCheck()}
##Restore status##: {if $status.status=='fault'}<b style="font-color:red">{$status.status}!!!</b>{else}{$status.status}{/if}
{if $status.status !== 'working'}
<p><input type="button" class="button" value="##Close Backup Restore##" onCLick="location.href='{$UI_HANDLER}?act=RESTORE.backupRestoreClose'"></p>
{/if}
{/if}
</div>
</div>
{assign var='status' value=null}

View file

@ -0,0 +1,11 @@
<div class="content">
<div class="container_elements" style="width: 607px;">
<h1>##Schedule backup##</h1>
{assign var='dynform' value=$EXCHANGE->getScheduleBackupForm()}
{include file="sub/dynForm_plain.tpl"}
</div>
</div>