mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
apply new UI to autoinstall module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8622 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4686c06414
commit
c7cbf2d446
19 changed files with 351 additions and 323 deletions
|
|
@ -26,6 +26,12 @@
|
|||
|
||||
function procAutoinstallAdminUpdateinfo()
|
||||
{
|
||||
$this->_updateinfo();
|
||||
$this->setMessage("success_updated", 'update');
|
||||
$this->setRedirectUrl(Context::get('error_return_url'));
|
||||
}
|
||||
|
||||
function _updateinfo(){
|
||||
$oModel = &getModel('autoinstall');
|
||||
$item = $oModel->getLatestPackage();
|
||||
if($item)
|
||||
|
|
@ -41,9 +47,7 @@
|
|||
$this->updateCategory($xmlDoc);
|
||||
$this->updatePackages($xmlDoc);
|
||||
$this->checkInstalled();
|
||||
|
||||
$this->setMessage("success_updated");
|
||||
}
|
||||
}
|
||||
|
||||
function checkInstalled()
|
||||
{
|
||||
|
|
@ -146,11 +150,16 @@
|
|||
$oModuleInstaller = new FTPModuleInstaller($package);
|
||||
}
|
||||
|
||||
$oModuleInstaller->setServerUrl(_XE_DOWNLOAD_SERVER_);
|
||||
$oModuleInstaller->setPassword($ftp_password);
|
||||
$output = $oModuleInstaller->install();
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
$this->setMessage('success_installed');
|
||||
|
||||
$this->_updateinfo();
|
||||
|
||||
$this->setMessage('success_installed', 'update');
|
||||
$this->setRedirectUrl(preg_replace('/act=[^&]*/', 'act=dispAutoinstallAdminIndex', Context::get('error_return_url')));
|
||||
}
|
||||
|
||||
function updatePackages(&$xmlDoc)
|
||||
|
|
@ -239,7 +248,10 @@
|
|||
$output = $oModuleInstaller->uninstall();
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage('success_deleted');
|
||||
$this->_updateinfo();
|
||||
|
||||
$this->setMessage('success_deleted', 'update');
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminInstalledPackages'));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
foreach($items as $item)
|
||||
{
|
||||
$v = $this->rearrange($item, $targets);
|
||||
$v->category = $this->categories[$v->category_srl]->title;
|
||||
if($packages[$v->package_srl])
|
||||
{
|
||||
$v->current_version = $packages[$v->package_srl]->current_version;
|
||||
|
|
@ -122,7 +123,7 @@
|
|||
$params["act"] = "getResourceapiPackages";
|
||||
$params["package_srls"] = implode(",", array_keys($package_list));
|
||||
$body = XmlGenerater::generate($params);
|
||||
$buff = FileHandler::getRemoteResource($this->uri, $body, 3, "POST", "application/xml");
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml");
|
||||
$xml_lUpdate = new XmlParser();
|
||||
$xmlDoc = $xml_lUpdate->parse($buff);
|
||||
if($xmlDoc && $xmlDoc->response->packagelist->item)
|
||||
|
|
@ -222,7 +223,7 @@
|
|||
$params = array();
|
||||
$params["act"] = "getResourceapiLastupdate";
|
||||
$body = XmlGenerater::generate($params);
|
||||
$buff = FileHandler::getRemoteResource($this->uri, $body, 3, "POST", "application/xml");
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml");
|
||||
$xml_lUpdate = new XmlParser();
|
||||
$lUpdateDoc = $xml_lUpdate->parse($buff);
|
||||
$updateDate = $lUpdateDoc->response->updatedate->body;
|
||||
|
|
@ -231,11 +232,10 @@
|
|||
$item = $oModel->getLatestPackage();
|
||||
if(!$item || $item->updatedate < $updateDate || count($this->categories) < 1)
|
||||
{
|
||||
Context::set('need_update', true);
|
||||
return;
|
||||
$oController = &getAdminController('autoinstall');
|
||||
$oController->_updateinfo();
|
||||
}
|
||||
|
||||
|
||||
$page = Context::get('page');
|
||||
if(!$page) $page = 1;
|
||||
Context::set('page', $page);
|
||||
|
|
@ -298,13 +298,13 @@
|
|||
$installedPackage = $oModel->getPackage($package_srl);
|
||||
$path = $installedPackage->path;
|
||||
$type = $oModel->getTypeFromPath($path);
|
||||
if(!$type || $type == "core") $this->stop("msg_invalid_request");
|
||||
if(!$type || $type == "core") return $this->stop("msg_invalid_request");
|
||||
$config_file = $oModel->getConfigFilePath($type);
|
||||
if(!$config_file) $this->stop("msg_invalid_request");
|
||||
if(!$config_file) return $this->stop("msg_invalid_request");
|
||||
|
||||
$xml = new XmlParser();
|
||||
$xmlDoc = $xml->loadXmlFile(FileHandler::getRealPath($path).$config_file);
|
||||
if(!$xmlDoc) $this->stop("msg_invalid_request");
|
||||
if(!$xmlDoc) return $this->stop("msg_invalid_request");
|
||||
if($type == "drcomponent") $type = "component";
|
||||
if($type == "style") $type = "skin";
|
||||
$title = $xmlDoc->{$type}->title->body;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module>
|
||||
<actions>
|
||||
<action name="dispAutoinstallAdminInstall" type="view" standalone="true" />
|
||||
<action name="dispAutoinstallAdminUninstall" type="view" standalone="true" />
|
||||
<action name="procAutoinstallAdminUninstallPackage" type="controller" standalone="true" />
|
||||
<action name="dispAutoinstallAdminInstalledPackages" type="view" standalone="true" />
|
||||
<action name="dispAutoinstallAdminIndex" type="view" standalone="true" admin_index="true" />
|
||||
<action name="dispAutoinstallAdminInstall" type="view" standalone="true" menu_menu="easyInstall" />
|
||||
<action name="dispAutoinstallAdminUninstall" type="view" standalone="true" menu_menu="easyInstall" />
|
||||
<action name="procAutoinstallAdminUninstallPackage" type="controller" standalone="true" ruleset="ftp" />
|
||||
<action name="dispAutoinstallAdminInstalledPackages" type="view" standalone="true" menu_menu="easyInstall" />
|
||||
<action name="dispAutoinstallAdminIndex" type="view" standalone="true" admin_index="true" menu_menu="easyInstall" menu_index="true" />
|
||||
<action name="procAutoinstallAdminUpdateinfo" type="controller" standalone="true" />
|
||||
<action name="procAutoinstallAdminPackageinstall" type="controller" standalone="true" />
|
||||
<action name="procAutoinstallAdminPackageinstall" type="controller" standalone="true" ruleset="ftp" />
|
||||
</actions>
|
||||
<menus>
|
||||
<menu name="easyInstall">
|
||||
|
|
|
|||
|
|
@ -6,30 +6,30 @@
|
|||
**/
|
||||
|
||||
$lang->autoinstall = 'EasyInstall';
|
||||
$lang->about_autoinstall = 'EasyInstall module will help you install/upgrade programs (skins) for XE.';
|
||||
$lang->package_update = 'Recent Update';
|
||||
$lang->package_downloaded_count = 'Download Count';
|
||||
$lang->need_update = "Please update package list first.";
|
||||
|
||||
$lang->order_newest = "Newest";
|
||||
$lang->order_popular = "Popular";
|
||||
$lang->order_download = "Download";
|
||||
$lang->success_installed = "Successfully Installed";
|
||||
$lang->view_all_package = "View All";
|
||||
$lang->description_ftp_note = "If the FTP configuration is not set, the installation will not work. Please configure the FTP information";
|
||||
$lang->description_update = "If you have upgraded or installed programs without EasyInstall module, please press update button to renew new information.";
|
||||
$lang->description_ftp_note = 'If the %s is not set, the installation will not work. Pleas configure the FTP information';
|
||||
$lang->ftp_setup = 'FTP configuration';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press %s to renew new information.';
|
||||
$lang->status_update = 'update button';
|
||||
$lang->install = "Install";
|
||||
$lang->update = "Update";
|
||||
$lang->current_version = "Version";
|
||||
$lang->depending_programs = "This program is depending on ";
|
||||
$lang->require_update = "Update is required.";
|
||||
$lang->require_installation = "Installation is required.";
|
||||
$lang->description_install = "EasyInstall will also install/update all other programs which this program depends on";
|
||||
$lang->description_download = "If FTP is unavailable, you should manually download and extract it into the target path. (If the target path is ./modules/board, extract it to ./modules)";
|
||||
$lang->path = "Path";
|
||||
$lang->cmd_download = "Download";
|
||||
$lang->view_installed_packages = "Installed Packages";
|
||||
$lang->msg_ftp_password_input = "Please input the FTP password.";
|
||||
$lang->dependant_list = "Dependant package list of the current package";
|
||||
$lang->description_uninstall = "Package will be uninstalled. For modules, all data will be deleted.";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = '%s points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -4,32 +4,31 @@
|
|||
* @author NHN (developers@xpressengine.com) 翻訳:ミニミ
|
||||
* @brief Autoinstall(autoinstall) 日本語基本言語パッケージ
|
||||
**/
|
||||
|
||||
$lang->autoinstall = 'イージーインストール';
|
||||
$lang->about_autoinstall = 'XpressEngineの様々なプログラムを管理者画面上で簡単にインストール・アップグレードするモジュールです。';
|
||||
$lang->package_update = '最新アップデート';
|
||||
$lang->package_downloaded_count = '全体ダウンロード';
|
||||
$lang->need_update = "アップデートが必要です。";
|
||||
|
||||
$lang->order_newest = "新規登録";
|
||||
$lang->order_popular = "人気";
|
||||
$lang->order_download = "ダウンロード";
|
||||
$lang->success_installed = "インストールが成功しました。";
|
||||
$lang->view_all_package = "全てをみる";
|
||||
$lang->description_ftp_note = "FTP設定が完了されないと、イージーインストールが動作しません。 FTP設定を確認して下さい。";
|
||||
$lang->description_update = "新しくインストールしたモジュールバージョン情報などは「アップデート」を押すと反映されます。";
|
||||
$lang->description_ftp_note = "%sが完了されないと、イージーインストールが動作しません。 FTP設定を確認して下さい。";
|
||||
$lang->ftp_setup = 'FTP設定';
|
||||
$lang->description_update = "新しくインストールしたモジュールバージョン情報などは%sを押すと反映されます。";
|
||||
$lang->status_update = 'アップデート';
|
||||
$lang->install = "インストール";
|
||||
$lang->update = "アップデート";
|
||||
$lang->current_version = "現インストールバージョン";
|
||||
$lang->depending_programs = "依存プログラム";
|
||||
$lang->require_update = "アップデートが必要です。";
|
||||
$lang->require_installation = "インストールが必要です。";
|
||||
$lang->description_install = "インストールに進みますと、本プログラムが依存している全てのプログラムをアップデート/インストールします。";
|
||||
$lang->description_download = "FTPの利用が出来ない場合は、直接ダウンロードし、サーバー上の該当パスにてインストールして下さい。 (一つ上階層にて解凍します。 ./modules/board の場合 ./modulesにて tarを解凍して下さい。)";
|
||||
$lang->path = "インストールパス";
|
||||
$lang->cmd_download = "ダウンロード";
|
||||
$lang->view_installed_packages = "インストールされたパッケージ";
|
||||
$lang->msg_ftp_password_input = "FTPパスワードを入力して下さい。";
|
||||
$lang->dependant_list = "このパッケージに依存するパッケージのリスト";
|
||||
$lang->description_uninstall = "パッケージを削除します。モジュールの場合、すべてのデータを失います。";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = 'points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -5,29 +5,30 @@
|
|||
* @brief Autoinstall (autoinstall) module of the basic language
|
||||
**/
|
||||
$lang->autoinstall = '쉬운 설치';
|
||||
$lang->about_autoinstall = 'XpressEngine의 여러 프로그램을 쉽게 설치/업그레이드할 수 있도록 도와주는 모듈입니다.';
|
||||
$lang->package_update = '최근 업데이트';
|
||||
$lang->package_downloaded_count = '전체 다운로드';
|
||||
$lang->need_update = "업데이트가 필요합니다.";
|
||||
$lang->order_newest = "신규 등록";
|
||||
$lang->order_popular = "인기";
|
||||
$lang->order_download = "다운로드";
|
||||
$lang->success_installed = "설치가 성공하였습니다.";
|
||||
$lang->view_all_package = "전체 보기";
|
||||
$lang->description_ftp_note = "FTP 설정이 안되어있으면 설치가 진행되지 않습니다. FTP설정을 해주세요";
|
||||
$lang->description_update = "새로 설치한 모듈의 버전 정보등은 업데이트를 눌러주시면 반영됩니다.";
|
||||
$lang->description_ftp_note = '%s이 되어 있지 않으면 설치 및 업데이트가 진행되지 않습니다.';
|
||||
$lang->ftp_setup = 'FTP 설정';
|
||||
$lang->description_update = '쉬운설치 사용전 %s를 해주세요.';
|
||||
$lang->status_update = '상태 업데이트';
|
||||
$lang->install = "설치";
|
||||
$lang->update = "업데이트";
|
||||
$lang->current_version = "현재 설치 버전";
|
||||
$lang->depending_programs = "의존하고 있는 프로그램";
|
||||
$lang->current_version = "설치 버전";
|
||||
$lang->require_update = "업데이트가 필요합니다.";
|
||||
$lang->require_installation = "설치가 필요합니다.";
|
||||
$lang->description_install = "설치를 진행하면, 이 프로그램이 의존하고 있는 모든 프로그램을 업데이트/설치 합니다.";
|
||||
$lang->description_download = "FTP를 이용할 수 없는 경우, 직접 다운로드 하여 해당 path에 설치하셔야 합니다. (한칸 상위에서 압축을 푸시면 됩니다. ./modules/board의 경우 ./modules에서 tar를 푸세요)";
|
||||
$lang->path = "설치경로";
|
||||
$lang->cmd_download = "다운로드";
|
||||
$lang->view_installed_packages = "설치된 패키지";
|
||||
$lang->msg_ftp_password_input = "FTP 비밀번호를 입력해주세요";
|
||||
$lang->dependant_list = "이 패키지에 의존하는 패키지 목록";
|
||||
$lang->description_uninstall = "패키지를 삭제합니다. 모듈의 경우 모든 데이터가 사라집니다.";
|
||||
$lang->distribute_version = '배포 버전';
|
||||
$lang->run = '실행';
|
||||
$lang->rate = '%s점';
|
||||
$lang->thumbnail = '썸네일';
|
||||
$lang->name = '이름';
|
||||
$lang->about_depending_programs = '이 패키지 사용을 위해서는 아래 프로그램이 설치되어 있어야 합니다.';
|
||||
$lang->ftp_password = 'FTP 비밀번호';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -4,32 +4,31 @@
|
|||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief Autoinstall(autoinstall) language pack (English)
|
||||
**/
|
||||
|
||||
$lang->autoinstall = 'EasyInstall';
|
||||
$lang->about_autoinstall = 'EasyInstall module will help you install/upgrade programs(skins) for XE.';
|
||||
$lang->package_update = 'Recent Update';
|
||||
$lang->package_downloaded_count = 'Download Count';
|
||||
$lang->need_update = 'Please update package list first.';
|
||||
|
||||
$lang->order_newest = 'Новый';
|
||||
$lang->order_popular = 'Популярный';
|
||||
$lang->order_download = 'Скачать';
|
||||
$lang->success_installed = 'Установлено успешно';
|
||||
$lang->view_all_package = 'Показать все';
|
||||
$lang->description_ftp_note = 'If FTP configuration is not set, installation would not work. Please configure FTP information';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press update button to renew new information';
|
||||
$lang->install = 'Инсталлировать';
|
||||
$lang->update = 'Обновить';
|
||||
$lang->order_newest = 'Новый';
|
||||
$lang->order_popular = 'Популярный';
|
||||
$lang->order_download = 'Скачать';
|
||||
$lang->description_ftp_note = 'If %s is not set, installation would not work. Please configure FTP information';
|
||||
$lang->ftp_setup = 'FTP configuration';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press %s to renew new information';
|
||||
$lang->status_update = 'update button';
|
||||
$lang->install = 'Инсталлировать';
|
||||
$lang->update = 'Обновить';
|
||||
$lang->current_version = 'Version';
|
||||
$lang->depending_programs = 'This program is depending on';
|
||||
$lang->require_update = 'Update is required';
|
||||
$lang->require_installation = 'Installation is required';
|
||||
$lang->description_install = 'EasyInstall will also install/update all other programs which this program is depending on';
|
||||
$lang->description_download = 'If FTP is unavailable, you should manually download it and extract it into target path. (if target path is ./modules/board, extract it at ./modules)';
|
||||
$lang->path = 'Path';
|
||||
$lang->cmd_download = 'Download';
|
||||
$lang->view_installed_packages = 'Installed Packages';
|
||||
$lang->msg_ftp_password_input = 'Please input FTP password';
|
||||
$lang->dependant_list = "이 패키지에 의존하는 패키지 목록";
|
||||
$lang->description_uninstall = "패키지를 삭제합니다. 모듈의 경우 모든 데이터가 사라집니다.";
|
||||
$lang->description_uninstall = "Package will be uninstalled. For modules, all data will be deleted.";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = 'points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -4,32 +4,31 @@
|
|||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief Autoinstall(autoinstall) language pack (English)
|
||||
**/
|
||||
|
||||
$lang->autoinstall = 'KolayKurulum';
|
||||
$lang->about_autoinstall = 'KolayKurulum modülü size programların(dış görünüm), XE\'ye kurulumunda ve sürüm yükseltmesinde yardımcı olacaktır.';
|
||||
$lang->package_update = 'Son Güncellemeler';
|
||||
$lang->package_downloaded_count = 'İndirme Sayısı';
|
||||
$lang->need_update = "Lütfen önce paket listesini güncelleyiniz.";
|
||||
|
||||
$lang->order_newest = "En Yeniler";
|
||||
$lang->order_popular = "Popüler";
|
||||
$lang->order_download = "İndirme";
|
||||
$lang->success_installed = "Başarıyla Kuruldu";
|
||||
$lang->view_all_package = "Tümünü Göster";
|
||||
$lang->description_ftp_note = "Eğer FTP düzeni ayarlanmadıysa, kurulum çalışmayacaktır.Lütfen FTP bilgisini yapılandırınız.";
|
||||
$lang->description_update = "Eğer KolayKurulum modülünü kullanmadan programları kurduysanız ya da güncelleştirdiyseniz, lütfen yeni bilgiyi uyarlamak için güncelleştir tuşuna basınız.";
|
||||
$lang->description_ftp_note = 'If the %s is not set, the installation will not work. Pleas configure the FTP information';
|
||||
$lang->ftp_setup = 'FTP configuration';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press %s to renew new information.';
|
||||
$lang->status_update = 'update button';
|
||||
$lang->install = "Kurulum";
|
||||
$lang->update = "Güncelle";
|
||||
$lang->current_version = "Sürüm";
|
||||
$lang->depending_programs = "Bu program için aşağıdaki program(lar) gereklidir : ";
|
||||
$lang->require_update = "Güncelleme gerekmektedir.";
|
||||
$lang->require_installation = "Kurulum gerekmektedir.";
|
||||
$lang->description_install = "KolayKurulum, bu program için gerekli olan tüm diğer programları kurup/güncelleştirecektir.";
|
||||
$lang->description_download = "Eğer FTP kullanılamaz durumduysa, indirmeyi kendiniz yapmanız ve dosyaları hedef dizine çıkartmanız gerekmektedir. (eğer hedef yol ./modules/board ise, çıkarma işlemini ./modules yoluna yapınız)";
|
||||
$lang->path = "Yol";
|
||||
$lang->cmd_download = "İndirme";
|
||||
$lang->view_installed_packages = "Kurulmuş Paketler";
|
||||
$lang->msg_ftp_password_input = "Lütfen FTP şifresini giriniz.";
|
||||
$lang->dependant_list = "Mevcut pakete bağlı paket listesi";
|
||||
$lang->description_uninstall = "Paket kaldırılacaktır. Modüller için, tüm veriler silinecektir.";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = 'points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -4,32 +4,31 @@
|
|||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief Autoinstall(autoinstall) 모듈의 기본 언어팩
|
||||
**/
|
||||
|
||||
$lang->autoinstall = 'Cập nhật tự động';
|
||||
$lang->about_autoinstall = 'Nó sẽ giúp bạn Cài đặt / Nâng cấp phiên bản tự động từ trang chủ XE.';
|
||||
$lang->package_update = 'Cập nhật';
|
||||
$lang->package_downloaded_count = 'Lượt Download';
|
||||
$lang->need_update = "Danh sách phiên bản cần cập nhật.";
|
||||
|
||||
$lang->order_newest = "Mới nhất";
|
||||
$lang->order_popular = "Phổ biến";
|
||||
$lang->order_download = "Download";
|
||||
$lang->success_installed = "Đã cài đặt thành công.";
|
||||
$lang->view_all_package = "Xem tất cả";
|
||||
$lang->description_ftp_note = "Nếu bạn chưa thiết lập FTP, sẽ không thể cài đặt đặt hay cập nhật. Xin hãy thiết lập thông tin FTP.";
|
||||
$lang->description_update = "Nếu bạn cập nhật hay cài đặt mà không sử dụng chương trình cập nhật tự động, xin hãy bấm 'Cập nhật' tại trang quản lý để giữ lại thông tin đã cập nhật của chương trình.";
|
||||
$lang->description_ftp_note = 'If the %s is not set, the installation will not work. Pleas configure the FTP information';
|
||||
$lang->ftp_setup = 'FTP configuration';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press %s to renew new information.';
|
||||
$lang->status_update = 'update button';
|
||||
$lang->install = "Cài đặt";
|
||||
$lang->update = "Cập nhật";
|
||||
$lang->current_version = "Phiên bản đang dùng";
|
||||
$lang->depending_programs = "Chương trình này phụ thuộc vào ";
|
||||
$lang->require_update = "Yêu cầu cập nhật.";
|
||||
$lang->require_installation = "Yêu cầu cài đặt.";
|
||||
$lang->description_install = "Quá trình Cài đặt / Cập nhật này phụ thuộc vào ";
|
||||
$lang->description_download = "Khi FTP không được mở, bạn nên tải về và giả nén, sau đó Upload theo đường dẫn. (Nếu đường dẫn là ./modules/board, thì giải nén vào ./modules)";
|
||||
$lang->path = "Đường dẫn";
|
||||
$lang->cmd_download = "Download";
|
||||
$lang->view_installed_packages = "Những gói đã cài đặt";
|
||||
$lang->msg_ftp_password_input = "Hãy nhập mật khẩu của FTP.";
|
||||
$lang->dependant_list = "Gói cài đặt này phụ thuộc vào các gói khác trong danh sách";
|
||||
$lang->description_uninstall = "Loại bỏ gói cài đặt. Tất cả dữ liệu của các gói sẽ đồng thời bị xóa.";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = 'points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -4,32 +4,31 @@
|
|||
* @author NHN (developers@xpressengine.com) 翻译:guny(space.china@gmail.com)
|
||||
* @brief 在线安装/更新(autoinstall)模块语言包
|
||||
**/
|
||||
|
||||
$lang->autoinstall = '安装·更新';
|
||||
$lang->about_autoinstall = 'Autoinstall是XpressEngine的在线安装/更新模块。';
|
||||
$lang->package_update = '最新更新';
|
||||
$lang->package_downloaded_count = '总下载';
|
||||
$lang->need_update = "有新的更新。";
|
||||
|
||||
$lang->order_newest = "最新发布";
|
||||
$lang->order_popular = "热门";
|
||||
$lang->order_download = "下载";
|
||||
$lang->success_installed = "安装成功!";
|
||||
$lang->view_all_package = "查看全部";
|
||||
$lang->description_ftp_note = "请务必完成FTP设置,否则将无法在线安装(更新)相关模块。";
|
||||
$lang->description_update = "新安装(更新)模块的版本信息,点击Update按钮后才能正常显示。";
|
||||
$lang->description_ftp_note = 'If the %s is not set, the installation will not work. Pleas configure the FTP information';
|
||||
$lang->ftp_setup = 'FTP configuration';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press %s to renew new information.';
|
||||
$lang->status_update = 'update button';
|
||||
$lang->install = "安装";
|
||||
$lang->update = "更新";
|
||||
$lang->current_version = "现用版本";
|
||||
$lang->depending_programs = "联动插件/控件";
|
||||
$lang->require_update = "需要更新";
|
||||
$lang->require_installation = "需要安装";
|
||||
$lang->description_install = "安装时,与其联动的插件/控件也会同时被安装(更新)。";
|
||||
$lang->description_download = "无法使用FTP时,需得自行下载安装到指定路径。";
|
||||
$lang->path = "安装路径";
|
||||
$lang->cmd_download = "下载";
|
||||
$lang->view_installed_packages = "已安装的数据包";
|
||||
$lang->msg_ftp_password_input = "请输入FTP密码。";
|
||||
$lang->dependant_list = "联动数据包列表";
|
||||
$lang->description_uninstall = "确定要删除此数据包吗?如果此数据包为模块,模块中的数据将会全部消失。";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = 'points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -6,30 +6,30 @@
|
|||
**/
|
||||
|
||||
$lang->autoinstall = '自動安裝';
|
||||
$lang->about_autoinstall = '可幫助您安裝及更新 XE 程式和面板。';
|
||||
$lang->package_update = '最近更新';
|
||||
$lang->package_downloaded_count = '下載次數';
|
||||
$lang->need_update = "需要更新。";
|
||||
|
||||
$lang->order_newest = "最新發表";
|
||||
$lang->order_popular = "熱門";
|
||||
$lang->order_download = "下載";
|
||||
$lang->success_installed = "安裝成功";
|
||||
$lang->view_all_package = "全部檢視";
|
||||
$lang->description_ftp_note = "請先將 FTP 設定好,否則無法執行自動安裝功能。";
|
||||
$lang->description_update = "如果您最近不是用自動安裝模組更新或安裝,請按更新按鈕更新。";
|
||||
$lang->description_ftp_note = 'If the %s is not set, the installation will not work. Pleas configure the FTP information';
|
||||
$lang->ftp_setup = 'FTP configuration';
|
||||
$lang->description_update = 'If you have upgraded or installed programs without EasyInstall module, please press %s to renew new information.';
|
||||
$lang->status_update = 'update button';
|
||||
$lang->install = "安裝";
|
||||
$lang->update = "更新";
|
||||
$lang->current_version = "版本";
|
||||
$lang->depending_programs = "此程式需要安裝";
|
||||
$lang->require_update = "需要更新";
|
||||
$lang->require_installation = "需要安裝";
|
||||
$lang->description_install = "自動安裝也能夠同時安裝與更新其他相關程式";
|
||||
$lang->description_download = "如果 FTP 無法使用的話,必須要手動下載並解壓縮到目標路徑。(假設目標路徑為 ./modules/board 的話,將檔案解壓縮到 ./modules就可以了)";
|
||||
$lang->path = "路徑";
|
||||
$lang->cmd_download = "下載";
|
||||
$lang->view_installed_packages = "已安裝程式";
|
||||
$lang->msg_ftp_password_input = "請輸入 FTP 密碼";
|
||||
$lang->dependant_list = "與此程式相關程式列表";
|
||||
$lang->description_uninstall = "移除模組,所有資料將會被刪除。";
|
||||
$lang->distribute_version = 'Distribute version';
|
||||
$lang->run = 'Run';
|
||||
$lang->rate = '% points';
|
||||
$lang->thumbnail = 'Thumbnail';
|
||||
$lang->name = 'Name';
|
||||
$lang->about_depending_programs = 'To use this package must be installed the fllowing program.';
|
||||
$lang->ftp_password = 'FTP password';
|
||||
?>
|
||||
|
|
|
|||
8
modules/autoinstall/ruleset/ftp.xml
Normal file
8
modules/autoinstall/ruleset/ftp.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
</customrules>
|
||||
<fields>
|
||||
<field name="ftp_password" required="true"/>
|
||||
</fields>
|
||||
</ruleset>
|
||||
17
modules/autoinstall/tpl/category.html
Normal file
17
modules/autoinstall/tpl/category.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<div class="easyNav">
|
||||
<div loop="$categories => $category" class="category">
|
||||
<block cond="$category->depth == 0">
|
||||
<h2>
|
||||
<block cond="$category->category_srl != $category_srl"><a href="{getUrl('','module','admin','act','dispAutoinstallAdminIndex','category_srl',$category->category_srl,'childrenList', $category->childrenList)}">{$category->title}</a></block>
|
||||
<block cond="$category->category_srl == $category_srl"><strong>{$category->title}</strong></block>
|
||||
</h2>
|
||||
<ul>
|
||||
<li loop="$category->children => $children">
|
||||
<block cond="$children->category_srl == $category_srl"><strong>{$children->title}</strong>({$children->nPackages})</block>
|
||||
<block cond="$children->category_srl != $category_srl"><a href="{getUrl('','module','admin','act','dispAutoinstallAdminIndex','category_srl',$children->category_srl,'childrenList','')}">{$children->title}</a>({$children->nPackages})</block>
|
||||
</li>
|
||||
</ul>
|
||||
</block>
|
||||
</div>
|
||||
<p class="filter"><a href="{getUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminIndex')}">All({$tCount})</a> | <a href="{getUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminInstalledPackages')}">Installed({$iCount})</a></p>
|
||||
</div>
|
||||
|
|
@ -1 +1 @@
|
|||
<h3 class="xeAdmin">{$lang->autoinstall} <span class="gray">Beta</span></h3>
|
||||
<h1 class="h1">{$lang->autoinstall}</h1>
|
||||
|
|
@ -1,21 +1,21 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("css/autoinstall.css")-->
|
||||
<!--%import("js/autoinstall.js")-->
|
||||
<div class="infoText">
|
||||
<!--@if($show_ftp_note)-->
|
||||
<p class="warning">{$lang->description_ftp_note} <a href="{getUrl('','module','admin','act','dispAdminConfig')}#ftpSetup">FTP Setup</a> </p>
|
||||
<!--@end-->
|
||||
<!--@if($need_update)-->
|
||||
<p class="update">{$lang->need_update}</p>
|
||||
<!--@else-->
|
||||
<p class="update">{$lang->description_update}</p>
|
||||
<!--@end-->
|
||||
<p><span class="button xLarge strong green"><button type="button" onclick="doUpdate()" title="update">Update</button></span></p>
|
||||
</div>
|
||||
<include target="header.html" />
|
||||
|
||||
<div class="install">
|
||||
<!--#include("leftBox.html")-->
|
||||
<!--@if($item_list)-->
|
||||
<!--#include("list.html")-->
|
||||
<!--@end-->
|
||||
</div>
|
||||
<p>
|
||||
<block cond="$show_ftp_note">
|
||||
{@$ftp_link = sprintf('<a href="%s#ftpSetup">%s</a>', getUrl('', 'module', 'admin', 'act', 'dispAdminConfig'), $lang->ftp_setup)}
|
||||
{sprintf($lang->description_ftp_note, $ftp_link)}
|
||||
</block>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="module" value="autoinstall" />
|
||||
<input type="hidden" name="act" value="procAutoinstallAdminUpdateinfo" />
|
||||
{@$btnUpdate = sprintf('<input type="submit" value="%s" />', $lang->status_update)}
|
||||
{sprintf($lang->description_update, $btnUpdate)}
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<block cond="$item_list">
|
||||
<include target="list.html" />
|
||||
</block>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,46 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("css/autoinstall.css")-->
|
||||
<!--%import("js/autoinstall.js")-->
|
||||
<div class="infoText">
|
||||
<p><strong>{$package->title}</strong> ver. <strong>{$package->version}</strong> ( <!--@if($package->installed)-->{$lang->current_version}: {$package->cur_version} <!--@if($package->need_update)--> ({$lang->require_update})<!--@end--> <!--@else-->{$lang->require_installation}<!--@end--> )</p>
|
||||
<!--@foreach($package->depends as $dep)-->
|
||||
<dl>
|
||||
<dt><strong>{$lang->depending_programs} :</strong></dt>
|
||||
<dd> {$dep->title} ver. {$dep->version} -
|
||||
<!--@if($dep->installed)-->{$lang->current_version}: {$dep->cur_version} <!--@if($dep->need_update)--> ({$lang->require_update})<!--@end--> <!--@else-->{$lang->require_installation}<!--@end-->
|
||||
<!--@if($show_ftp_note && ($dep->need_update || !$dep->installed))--><a href="http://download.xpressengine.com/?module=resourceapi&act=procResourceapiDownload&package_srl={$dep->package_srl}">{$lang->cmd_download}</a> ({$lang->path} : {$dep->path})<!--@end-->
|
||||
</dd>
|
||||
</dl>
|
||||
<!--@end-->
|
||||
<include target="header.html" />
|
||||
{@debugPrint($package)}
|
||||
<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>
|
||||
|
||||
<!--@if(!$package->installed || $package->need_update)-->
|
||||
<!--@if($show_ftp_note)-->
|
||||
<p class="warning">{$lang->description_download}. (<a href="{getUrl('','module','admin','act','dispAdminConfig')}#ftpSetup">FTP Setup</a>) </p>
|
||||
<p>{$lang->path} : {$package->path}</p>
|
||||
<p><a href="http://download.xpressengine.com/?module=resourceapi&act=procResourceapiDownload&package_srl={$package->package_srl}" class="button large green strong"><span>{$lang->cmd_download}</span></a></p>
|
||||
<!--@else-->
|
||||
<p>{$lang->description_install}. </p>
|
||||
<!--@if($need_password)-->
|
||||
<p><label for="ftp_password">FTP {$lang->password} ({$lang->about_ftp_password}):</label><input type="password" name="ftp_password" id="ftp_password" class="inputTypeText" /></p>
|
||||
<!--@end-->
|
||||
<p><a href="#" onclick="doInstallPackage('{$package->package_srl}')" class="button large green strong"><span>{$package->installed?$lang->update:$lang->install}</span></a></p>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<block cond="!$package->installed || $package->need_update">
|
||||
<block cond="$show_ftp_note">
|
||||
<p>{$lang->description_download}. (<a href="{getUrl('', 'module', 'admin', 'act', 'dispAdminConfig')}#ftpSetup">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">
|
||||
<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 cond="!$need_password" type="hidden" name="ftp_password" value="dummy" />
|
||||
|
||||
</div>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -1,50 +0,0 @@
|
|||
<div class="aside">
|
||||
<div class="categoryBox">
|
||||
<h3 class="bottomLine"><a href="{getUrl('act','dispAutoinstallAdminIndex','category_srl','')}">{$lang->view_all_package}</a> <span>({$tCount})</span></h3>
|
||||
{@ $_pDepth = 0;}
|
||||
|
||||
<ul class="category">
|
||||
<!--@foreach($categories as $key => $val)-->
|
||||
<!--@if($_pDepth > $val->depth)-->
|
||||
<!--@for($i=$val->depth; $i<$_pDepth; $i++)-->
|
||||
</ul>
|
||||
</li>
|
||||
<!--@end-->
|
||||
{@ $_pDepth = $val->depth}
|
||||
<!--@end-->
|
||||
<li>
|
||||
<!--@if(count($val->children))-->
|
||||
<a href="{getUrl('','module','admin','act','dispAutoinstallAdminIndex','category_srl',$val->category_srl,'childrenList',$val->childrenList)}"<!--@if($val->category_srl == $category_srl)--> class="selected"<!--@end-->>{$val->title}</a>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('','module','admin','act','dispAutoinstallAdminIndex','category_srl',$val->category_srl,'childrenList','')}"<!--@if($val->category_srl == $category_srl)--> class="selected"<!--@end-->>{$val->title}</a>
|
||||
<!--@end-->
|
||||
<!--@if($val->nPackages)-->
|
||||
<span>({$val->nPackages})</span>
|
||||
<!--@end-->
|
||||
<!--@if(count($val->children))-->
|
||||
{@$_pDepth++}
|
||||
<ul class="category">
|
||||
<!--@else-->
|
||||
</li>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<!--@for($i=0;$i<$_pDepth;$i++)-->
|
||||
</ul>
|
||||
<!--@end-->
|
||||
</li>
|
||||
</ul>
|
||||
<div class="searchBox bottomLine">
|
||||
<form action="{getUrl()}" method="get">
|
||||
<input type="hidden" name="category_srl" value="{$category_srl}" />
|
||||
<input type="hidden" name="module" value="admin" />
|
||||
<input type="hidden" name="act" value="dispAutoinstallAdminIndex" />
|
||||
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="input" />
|
||||
<input type="image" src="./img/btn_search.gif" class="submit" />
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<h3><a href="{getUrl('','module','admin','act','dispAutoinstallAdminInstalledPackages')}">{$lang->view_installed_packages}</a> <span>({$iCount})</span></h3>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -1,96 +1,112 @@
|
|||
<div class="content">
|
||||
<!--@if($act == "dispAutoinstallAdminIndex")-->
|
||||
<ul class="listOrder {$order_type}">
|
||||
<!--@if($order_target=='newest')-->
|
||||
<!--@if($order_type == 'desc')-->{@$_order_type = 'asc'}<!--@else-->{@$_order_type = 'desc'}<!--@end-->
|
||||
<!--@else-->
|
||||
{@$_order_type = 'desc'}
|
||||
<!--@end-->
|
||||
<li <!--@if($order_target=='newest')-->class="arrow"<!--@end-->><a href="{getUrl('order_target','newest','order_type',$_order_type)}">{$lang->order_newest}</a></li>
|
||||
<!--@if($order_target=='download')-->
|
||||
<!--@if($order_type == 'desc')-->{@$_order_type = 'asc'}<!--@else-->{@$_order_type = 'desc'}<!--@end-->
|
||||
<!--@else-->
|
||||
{@$_order_type = 'desc'}
|
||||
<!--@end-->
|
||||
<li <!--@if($order_target=='download')-->class="arrow"<!--@end-->><a href="{getUrl('order_target','download','order_type',$_order_type)}">{$lang->order_download}</a></li>
|
||||
<!--@if($order_target=='popular')-->
|
||||
<!--@if($order_type == 'desc')-->{@$_order_type = 'asc'}<!--@else-->{@$_order_type = 'desc'}<!--@end-->
|
||||
<!--@else-->
|
||||
{@$_order_type = 'desc'}
|
||||
<!--@end-->
|
||||
<li <!--@if($order_target=='popular')-->class="arrow"<!--@end-->><a href="{getUrl('order_target','popular','order_type',$_order_type)}">{$lang->order_popular}</a></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
<include target="category.html" />
|
||||
|
||||
<table class="updateList" border="1" cellspacing="0">
|
||||
<col width="120" /><col />
|
||||
<!--@foreach($item_list as $key => $val)-->
|
||||
<tr>
|
||||
{@ $target_url = $original_site."?mid=download&package_srl=".$val->package_srl; }
|
||||
<th><a href="{$target_url}"><img src="{str_replace('./', $uri, $val->item_screenshot_url)}" width="100" height="100" alt="" /></a></th>
|
||||
<td>
|
||||
<div class="title">
|
||||
<h3>
|
||||
<!--@if($val->category_srl)-->
|
||||
<a href="{getUrl('category_srl',$val->category_srl)}">[{$categories[$val->category_srl]->title}]</a>
|
||||
<!--@end-->
|
||||
<a href="{$target_url}">{htmlspecialchars($val->title)} ver. {htmlspecialchars($val->item_version)}</a>
|
||||
</h3>
|
||||
<!--@if($val->current_version)-->
|
||||
<p>{$lang->current_version} : {$val->current_version}
|
||||
<!--@if($val->deps)-->
|
||||
<br />
|
||||
{$lang->dependant_list} :
|
||||
<!--@foreach($val->deps as $package_srl)-->
|
||||
{$installed[$package_srl]->title}.
|
||||
<!--@endforeach-->
|
||||
<!--@end-->
|
||||
<div class="table even easyList">
|
||||
<table width="100%" border="1" cellspacing="0">
|
||||
<caption>
|
||||
All({$page_navigation->total_count})
|
||||
<span cond="$act == 'dispAutoinstallAdminIndex'" class="side">
|
||||
<!--@if($order_target == 'newest')-->
|
||||
<!--@if($order_type == 'desc')-->{@$_newest_order_type = 'asc'}<!--@else-->{@$_newest_order_type = 'desc'}<!--@end-->
|
||||
<!--@else-->
|
||||
{@$_newest_order_type = 'desc'}
|
||||
<!--@end-->
|
||||
<!--@if($order_target == 'download')-->
|
||||
<!--@if($order_type == 'desc')-->{@$_download_order_type = 'asc'}<!--@else-->{@$_download_order_type = 'desc'}<!--@end-->
|
||||
<!--@else-->
|
||||
{@$_download_order_type = 'desc'}
|
||||
<!--@end-->
|
||||
<!--@if($order_target == 'popular')-->
|
||||
<!--@if($order_type == 'desc')-->{@$_popular_order_type = 'asc'}<!--@else-->{@$_popular_order_type = 'desc'}<!--@end-->
|
||||
<!--@else-->
|
||||
{@$_popular_order_type = 'desc'}
|
||||
<!--@end-->
|
||||
|
||||
Sort by
|
||||
<a href="{getUrl('order_target','newest','order_type',$_newest_order_type)}">{$lang->order_newest}</a> <!--@if($order_target == 'newest')--><!--@if($_newest_order_type == 'asc')-->▼<!--@else-->▲<!--@end--><!--@end--> |
|
||||
<a href="{getUrl('order_target','download','order_type',$_download_order_type)}">{$lang->order_download}</a> <!--@if($order_target == 'download')--><!--@if($_download_order_type == 'asc')-->▼<!--@else-->▲<!--@end--><!--@end--> |
|
||||
<a href="{getUrl('order_target','popular','order_type',$_popular_order_type)}">{$lang->order_popular}</a> <!--@if($order_target == 'popular')--><!--@if($_popular_order_type == 'asc')-->▼<!--@else-->▲<!--@end--><!--@end-->
|
||||
</span>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{$lang->category}</th>
|
||||
<th scope="col" class="title">{$lang->thumbnail}</th>
|
||||
<th scope="col" class="title">{$lang->name}</th>
|
||||
<th scope="col">{$lang->distribute_version}</th>
|
||||
<th scope="col">{$lang->current_version}</th>
|
||||
<th scope="col">{$lang->run}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$item_list => $key, $item">
|
||||
<td>{$item->category}</td>
|
||||
<td class="title"><img src="{str_replace('./', $uri, $item->item_screenshot_url)}" alt="" width="100" height="100" /></td>
|
||||
<td class="title">
|
||||
<p><a href="{$target_url}">{htmlspecialchars($item->title)}</a></p>
|
||||
<p>{cut_str(htmlspecialchars($item->package_description),200)}</p>
|
||||
<p>
|
||||
<span class="starRating"><span style="width:{sprintf("%d",$item->package_voted/$item->package_voter*20)}%">{sprintf($lang->rate, $item->package_start)}</span></span>
|
||||
{sprintf("%0.1f",$item->package_voted/$item->package_voter*2)}/{number_format($item->package_voter)} |
|
||||
{$lang->package_update} {zdate($item->item_regdate, "Y-m-d H:i")} |
|
||||
{$lang->package_downloaded_count} : {number_format($item->package_downloaded)}
|
||||
</p>
|
||||
<div class="buttons">
|
||||
<!--@if($val->avail_remove)-->
|
||||
<a href="{getUrl('act','dispAutoinstallAdminUninstall','package_srl',$val->package_srl)}" class="button red strong"><span>{$lang->cmd_delete}</span></a>
|
||||
<!--@end-->
|
||||
<!--@if($val->need_update == 'Y')-->
|
||||
<a href="{getUrl('act','dispAutoinstallAdminInstall','package_srl',$val->package_srl)}" class="button"><span>{$lang->update}</span></a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@else-->
|
||||
<div class="buttons">
|
||||
<a href="{getUrl('act','dispAutoinstallAdminInstall','package_srl',$val->package_srl)}" class="button"><span>{$lang->install}</span></a>
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<div class="info">
|
||||
<p class="desc">{cut_str(htmlspecialchars($val->package_description),200)}</p>
|
||||
<p class="meta">
|
||||
<span class="reputation">
|
||||
<!--@for($i=0;$i<5;$i++)-->
|
||||
<!--@if($i<$val->package_star)-->
|
||||
<img src="./img/starOn.gif" alt="" />
|
||||
<!--@else-->
|
||||
<img src="./img/starOff.gif" alt="" />
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<span>{sprintf("%0.1f",$val->package_voted/$val->package_voter*2)}/{number_format($val->package_voter)}</span>
|
||||
</span>
|
||||
<span class="lastUpdate">{$lang->package_update} {zdate($val->item_regdate, "Y-m-d H:i")}</span>
|
||||
<span class="download">{$lang->package_downloaded_count} : {number_format($val->package_downloaded)}</span>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
|
||||
<div class="pagination a1">
|
||||
<a href="{getUrl('page','')}" class="prevEnd">{$lang->first_page}</a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
<strong>{$page_no}</strong>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no)}">{$page_no}</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page)}" class="nextEnd">{$lang->last_page}</a>
|
||||
</div>
|
||||
</td>
|
||||
<td>{htmlspecialchars($item->item_version)}</td>
|
||||
<td>{htmlspecialchars($item->current_version)}</td>
|
||||
<td>
|
||||
<a cond="!$item->current_version" href="{getUrl('act','dispAutoinstallAdminInstall','package_srl',$item->package_srl)}">{$lang->install}</a>
|
||||
<a cond="$item->current_version && $item->avail_remove" href="{getUrl('act','dispAutoinstallAdminUninstall','package_srl',$item->package_srl)}">{$lang->cmd_delete}</a>
|
||||
<a cond="$item->current_version && $item->need_update == 'Y'" href="{getUrl('act','dispAutoinstallAdminInstall','package_srl',$item->package_srl)}">{$lang->update}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="search">
|
||||
<form action="./" class="pagination">
|
||||
<input type="hidden" name="error_return_url" value="" />
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input cond="$order_target" type="hidden" name="order_target" value="{$order_target}" />
|
||||
<input cond="$order_type" type="hidden" name="order_type" value="{$order_type}" />
|
||||
<input cond="$category_srl" type="hidden" name="category_srl" value="{$category_srl}" />
|
||||
<input cond="$childrenList" type="hidden" name="childrenList" value="{$childrenList}" />
|
||||
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
|
||||
|
||||
<a href="{getUrl('page', '')}" class="direction">« FIRST</a>
|
||||
<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
|
||||
<a href="{getUrl('page', '')}">1</a>
|
||||
<a href="#goTo" class="tgSimple">...</a>
|
||||
<span id="goTo" class="tgContent">
|
||||
<input name="page" title="Go to Page" />
|
||||
<button type="submit">Go</button>
|
||||
</span>
|
||||
<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
|
||||
</block>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
{@$last_page = $page_no}
|
||||
<strong cond="$page_no == $page">{$page_no}</strong>
|
||||
<a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a>
|
||||
<!--@end-->
|
||||
<block cond="$last_page != $page_navigation->last_page">
|
||||
<a href="#goTo" class="tgSimple">...</a>
|
||||
<span id="goTo" class="tgContent">
|
||||
<input name="page" title="Go to Page" />
|
||||
<button type="submit">Go</button>
|
||||
</span>
|
||||
<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
|
||||
</block>
|
||||
<a href="{getUrl('page', $page_navigation->last_page)}" class="direction">LAST »</a>
|
||||
</form>
|
||||
<form cond="$act == 'dispAutoinstallAdminIndex'" action="./">
|
||||
<input type="hidden" name="error_return_url" value="" />
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input cond="$order_target" type="hidden" name="order_target" value="{$order_target}" />
|
||||
<input cond="$order_type" type="hidden" name="order_type" value="{$order_type}" />
|
||||
<input cond="$category_srl" type="hidden" name="category_srl" value="{$category_srl}" />
|
||||
<input cond="$childrenList" type="hidden" name="childrenList" value="{$childrenList}" />
|
||||
<input name="search_keyword" title="Search" value="{$search_keyword}" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -1,14 +1,27 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("css/autoinstall.css")-->
|
||||
<!--%import("js/autoinstall.js")-->
|
||||
<div class="infoText">
|
||||
<p><strong>{$package->title}</strong> [{$package->type}] - {$package->path}</p>
|
||||
<p class="caution"><strong>{$lang->description_uninstall}</strong></p>
|
||||
<form action="./" method="POST" onsubmit="return procFilter(this, uninstall_package);">
|
||||
<input type="hidden" name="package_srl" value="{$package_srl}" />
|
||||
<!--@if($need_password)-->
|
||||
<p><label for="ftp_password">FTP {$lang->password} ({$lang->about_ftp_password}):</label><input type="password" name="ftp_password" id="ftp_password" class="inputTypeText" /></p>
|
||||
<!--@end-->
|
||||
<span class="button strong"><input type="submit" value="{$lang->cmd_delete}" /></span>
|
||||
</form>
|
||||
<include target="header.html" />
|
||||
|
||||
<h2 class="h2">{$package->title}</h2>
|
||||
<p>{$package->type} ({$package->path})</p>
|
||||
|
||||
<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">
|
||||
<input type="hidden" name="module" value="autoinstall" />
|
||||
<input type="hidden" name="act" value="procAutoinstallAdminUninstallPackage" />
|
||||
<input type="hidden" name="package_srl" value="{$package_srl}" />
|
||||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue