rollback r10320, r10298, r10276, r10272
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10318 201d5d3c-b55e-5fd7-737f-ddc643e51545
59
modules/autoinstall/tpl/css/autoinstall.css
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
@charset "utf-8";
|
||||
/* NHN (developers@xpressengine.com) */
|
||||
.install{ border-top:1px solid #ddd; *zoom:1;}
|
||||
.install:after{ content:""; display:block; clear:both;}
|
||||
|
||||
.aside { width:180px; float:left; margin-right:30px; padding-bottom:30px; }
|
||||
|
||||
.aside .categoryBox { background-color:#F8F8F8; padding:10px; width:160px; overflow:hidden; }
|
||||
.aside .categoryBox h3 { padding:0 0 10px 0; margin:0 0 10px 0; white-space:nowrap; overflow:hidden; color:#48494E; font-size:11px; font-weight:normal;}
|
||||
.aside .categoryBox .bottomLine {background:transparent url(../img/hrE1.gif) repeat-x scroll left bottom;}
|
||||
.aside .categoryBox .topLine {background:transparent url(../img/hrE1.gif) repeat-x scroll left top;}
|
||||
.aside .categoryBox h3 a { color:#48494E; font-size:12px; font-weight:bold; text-decoration:none; }
|
||||
.aside .categoryBox ul.category { margin:10px 0 0 0; padding:0; list-style:none; }
|
||||
.aside .categoryBox ul.category li { margin:0 0 10px 10px; }
|
||||
.aside .categoryBox ul.category li a.selected { font-weight:bold; color:#2893BB; }
|
||||
.aside .categoryBox ul.category li a { text-decoration:none; color:#7B7575; }
|
||||
.aside .categoryBox ul.category li span { font-family:verdana; font-size:10px; color:#999; }
|
||||
|
||||
.aside .categoryBox ul.resourceManage { margin:0; padding:10px 0 0 0; list-style:none; background:transparent url(../img/hrE1.gif) repeat-x scroll left top; }
|
||||
.aside .categoryBox ul.resourceManage li { background:url(../img/btnManage.gif) no-repeat 2px 2px; padding-left:14px; white-space:nowrap; overflow:hidden; margin-bottom:10px; }
|
||||
.aside .categoryBox ul.resourceManage li a { text-decoration:none; color:#747474; }
|
||||
.aside .categoryBox ul.resourceManage li a.selected { font-weight:bold; }
|
||||
|
||||
.aside .searchBox { padding:10px 0; text-align:center; }
|
||||
.aside .searchBox input.input { border:1px solid #ddd; width:120px; height:16px;}
|
||||
.aside .searchBox input.submit { vertical-align:middle; }
|
||||
|
||||
.install .content { position:relative; *zoom:1; overflow:hidden; width:auto; float:none; margin:0;}
|
||||
|
||||
.updateList,
|
||||
.updateList th,
|
||||
.updateList td{ border:0; vertical-align:top; text-align:left; padding:10px 0;}
|
||||
.updateList {width:100%; height:100px; table-layout:fixed;}
|
||||
.updateList th,
|
||||
.updateList td{ border-bottom:1px dotted #ddd;}
|
||||
.updateList th img { border:1px solid #ccc; padding:2px; overflow:hidden; *zoom:1; }
|
||||
.updateList td { padding:10px 0 0 0;}
|
||||
.updateList td .title{ position:relative;}
|
||||
.updateList td .title h3 { padding:0; margin:0 0 5px 0; font-size:12px;}
|
||||
.updateList td .title a {text-decoration:none; color:#333 !important; }
|
||||
.updateList td .title .buttons{ position:absolute; top:0; right:0;}
|
||||
.updateList td .info p{ margin:0 0 5px 0; line-height:1.5;}
|
||||
.updateList td .info p.desc{ margin:0 100px 10px 0;}
|
||||
.updateList td .info p.meta{ font-size:11px;}
|
||||
.updateList td .info p.meta span{ display:inline-block; line-height:1; padding:0 5px 0 9px;}
|
||||
.updateList td .info p.meta .reputation{ padding:0 5px 0 0;}
|
||||
.updateList td .info p.meta .reputation img{ float:left; margin:-1px 0 0 0;}
|
||||
.updateList td .info p.meta .reputation span{ padding:0 0 0 5px;}
|
||||
.updateList td .info p.meta .lastUpdate{ border-left:1px solid #ddd;}
|
||||
.updateList td .info p.meta .download{ border-left:1px solid #ddd;}
|
||||
|
||||
ul.listOrder { position:relative; overflow:hidden; margin:0; padding:10px 0; text-align:left; background:transparent url(../img/hrE1.gif) repeat-x scroll left bottom;}
|
||||
ul.listOrder.asc li.arrow { background:url(../img/arrUp.gif) no-repeat right 2px; padding-right:10px; }
|
||||
ul.listOrder.desc li.arrow { background:url(../img/arrDown.gif) no-repeat right 2px; padding-right:10px; }
|
||||
ul.listOrder li { position:relative; left:-1px; display:inline; margin:0; padding:0 5px 0 9px; border-left:1px solid #ddd;}
|
||||
ul.listOrder li.arrow a { text-decoration:none; font-weight:bold; color:#2893BB; }
|
||||
ul.listOrder li a { text-decoration:none; color:#7B7575; }
|
||||
|
||||
p.caution strong { font-size: 1.2em; font-weight: bold; color: red; }
|
||||
1
modules/autoinstall/tpl/header.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<h1 class="h1">{$lang->autoinstall}</h1>
|
||||
BIN
modules/autoinstall/tpl/img/arrDown.gif
Normal file
|
After Width: | Height: | Size: 60 B |
BIN
modules/autoinstall/tpl/img/arrUp.gif
Normal file
|
After Width: | Height: | Size: 60 B |
BIN
modules/autoinstall/tpl/img/arrowPagination.gif
Normal file
|
After Width: | Height: | Size: 98 B |
BIN
modules/autoinstall/tpl/img/btn_search.gif
Normal file
|
After Width: | Height: | Size: 605 B |
BIN
modules/autoinstall/tpl/img/hrE1.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
modules/autoinstall/tpl/img/starOff.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
modules/autoinstall/tpl/img/starOn.gif
Normal file
|
After Width: | Height: | Size: 127 B |
|
|
@ -1,4 +1,4 @@
|
|||
<h1 class="h1">{$lang->autoinstall}</h1>
|
||||
<include target="header.html" />
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
|
|
|||
48
modules/autoinstall/tpl/install.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<include target="header.html" />
|
||||
<load target="js/waiting.js" usecdn="true" />
|
||||
|
||||
<h2 class="h2">{$package->title} ver. {$package->version}</h2>
|
||||
<p cond="$package->installed">{$lang->current_version}: {$package->cur_version} <block cond="$package->need_update">({$lang->require_update})</block></p>
|
||||
<p cond="!$package->installed">{$lang->require_installation}</p>
|
||||
<block cond="$package->depends">
|
||||
<p>{$lang->about_depending_programs}</p>
|
||||
<ul>
|
||||
<li loop="$package->depends => $dep">
|
||||
{$dep->title} ver. {$dep->version} -
|
||||
<block cond="$dep->installed">{$lang->current_version}: {$dep->cur_version} <block cond="$dep->need_update">({$lang->require_update})</block></block>
|
||||
<block cond="!$dep->installed">{$lang->require_installation}</block>
|
||||
<block cond="$show_ftp_note && ($dep->need_update || !$dep->installed)">
|
||||
<a href="{_XE_DOWNLOAD_SERVER_}?module=resourceapi&act=procResourceapiDownload&package_srl={$dep->package_srl}">{$lang->cmd_download}</a> ({$lang->path}: {$dep->path})
|
||||
</block>
|
||||
</li>
|
||||
</ul>
|
||||
</block>
|
||||
|
||||
<block cond="!$package->installed || $package->need_update">
|
||||
<block cond="$show_ftp_note">
|
||||
<p>{$lang->description_download}. (<a href="{getUrl('', 'module', 'admin', 'act', 'dispAdminConfigFtp')}">FTP Setup</a>)</p>
|
||||
<p>{$lang->path}: {$package->path}</p>
|
||||
<p><a href="{_XE_DOWNLOAD_SERVER_}?module=resourceapi&act=procResourceapiDownload&package_srl={$package->package_srl}">{$lang->cmd_download}</a>
|
||||
</block>
|
||||
<block cond="!$show_ftp_note">
|
||||
<p>{$lang->description_install}</p>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form action="./" class="form" method="post" ruleset="ftp">
|
||||
<input type="hidden" name="module" value="autoinstall" />
|
||||
<input type="hidden" name="act" value="procAutoinstallAdminPackageinstall" />
|
||||
<input type="hidden" name="package_srl" value="{$package->package_srl}" />
|
||||
<input type="hidden" name="return_url" value="{$return_url}" />
|
||||
<input cond="!$need_password" type="hidden" name="ftp_password" value="dummy" />
|
||||
|
||||
<block cond="$need_password">
|
||||
<p class="q"><label for="ftp_password">FTP {$lang->password}</label></p>
|
||||
<p class="a"><input type="password" name="ftp_password" id="ftp_password" value="" /> <span class="desc">{$lang->about_ftp_password}</span></p>
|
||||
</block>
|
||||
<div class="btnArea">
|
||||
<span class="btn medium"><input type="submit" value="{$package->installed?$lang->update:$lang->install}" /></span>
|
||||
</div>
|
||||
</form>
|
||||
</block>
|
||||
</block>
|
||||
43
modules/autoinstall/tpl/js/autoinstall.js
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
function completeUpdate(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function doUpdate() {
|
||||
var params = new Array();
|
||||
exec_xml('autoinstall', 'procAutoinstallAdminUpdateinfo', params, completeUpdate);
|
||||
}
|
||||
|
||||
function doInstallPackage(package_srl) {
|
||||
var params = new Array();
|
||||
params['package_srl'] = package_srl;
|
||||
var e = jQuery("#ftp_password").get(0)
|
||||
if(typeof(e) != "undefined")
|
||||
{
|
||||
params['ftp_password'] = e.value;
|
||||
}
|
||||
|
||||
exec_xml('autoinstall', 'procAutoinstallAdminPackageinstall', params, completeInstall);
|
||||
}
|
||||
|
||||
function completeUpdateNoMsg(ret_obj) {
|
||||
//location.reload();
|
||||
var src = current_url.setQuery('act', 'dispAutoinstallAdminIndex');
|
||||
location.href = src;
|
||||
}
|
||||
|
||||
function completeInstall(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
if(ret_obj['error'] != 0) return;
|
||||
var params = new Array();
|
||||
exec_xml('autoinstall', 'procAutoinstallAdminUpdateinfo', params, completeUpdateNoMsg);
|
||||
}
|
||||
|
||||
function completeUninstall(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
if(ret_obj['error'] != 0) return;
|
||||
var params = new Array();
|
||||
exec_xml('autoinstall', 'procAutoinstallAdminUpdateinfo', params, completeUpdateNoMsg);
|
||||
}
|
||||
|
||||
|
||||
15
modules/autoinstall/tpl/js/waiting.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(function($){
|
||||
var WaitingStub = xe.createPlugin('waiting_stub', {
|
||||
API_BEFORE_VALIDATE : function(sender, params) {
|
||||
$('.wfsr').html(waiting_message).show();
|
||||
},
|
||||
API_BEFORE_SHOW_ALERT : function(sender, params) {
|
||||
$('.wfsr').hide();
|
||||
}
|
||||
});
|
||||
|
||||
var Validator = xe.getApp('validator')[0];
|
||||
if(Validator){
|
||||
Validator.registerPlugin(new WaitingStub);
|
||||
}
|
||||
})(jQuery);
|
||||
40
modules/autoinstall/tpl/uninstall.html
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<include target="header.html" />
|
||||
<load target="js/waiting.js" usecdn="true" />
|
||||
|
||||
<h2 class="h2">{$package->title}</h2>
|
||||
<p>{$package->type} ({$package->path})</p>
|
||||
|
||||
<block cond="$package->avail_remove">
|
||||
<div class="message info">
|
||||
<p>{$lang->description_uninstall}</p>
|
||||
</div>
|
||||
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form action="./" class="form" method="post" ruleset="ftp">
|
||||
<input type="hidden" name="module" value="autoinstall" />
|
||||
<input type="hidden" name="act" value="procAutoinstallAdminUninstallPackage" />
|
||||
<input type="hidden" name="package_srl" value="{$package_srl}" />
|
||||
<input type="hidden" name="return_url" value="{$return_url}" />
|
||||
<input cond="!$need_password" type="hidden" name="ftp_password" value="dummy" />
|
||||
|
||||
<block cond="$need_password">
|
||||
<p class="q"><label for="ftp_password">FTP {$lang->password}</label></p>
|
||||
<p class="a"><input type="password" name="ftp_password" id="ftp_password" value="" /> <span class="desc">{$lang->about_ftp_password}</span></p>
|
||||
</block>
|
||||
|
||||
<div class="btnArea">
|
||||
<span class="btn medium"><input type="submit" value="{$lang->cmd_delete}" /></span>
|
||||
</div>
|
||||
</form>
|
||||
</block>
|
||||
<block cond="!$package->avail_remove">
|
||||
<div class="message error">
|
||||
<p>{$lang->msg_dependency_package}</p>
|
||||
</div>
|
||||
<p cond="$package->deps">{$lang->dependant_list}:</p>
|
||||
<ul cond="$package->deps">
|
||||
<li loop="$package->deps => $dep_package_srl">{$installed[$dep_package_srl]->title}</li>
|
||||
</ul>
|
||||
</block>
|
||||