バージョン選択

フォーラム

メニュー

オンライン状況

90 人のユーザが現在オンラインです。 (84 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 90
もっと...

サイト内検索

質問 > その他 > ファイル管理画面の alert 機能について

その他

新規スレッドを追加する

スレッド表示 | 古いものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
netwiz
投稿日時: 2008/9/10 19:17
対応状況: −−−
常連
登録日: 2008/9/9
居住地:
投稿: 47
Re: ファイル管理画面の alert 機能について
mifes で全php ソースを $tpl_ のキーワードで
検索した結果です
添付しておきます

  2.3.0-rc1

\data\class\SC_Fpdf.php 35: function SC_Fpdf($arrData, $tpl_pdf = "template_nouhin01.pdf") {
\data\class\SC_Fpdf.php 38: $this->tpl_pdf = PDF_TEMPLATE_DIR . $tpl_pdf; // テンプレートファイル
\data\class\SC_PageNavi.php 26: <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->">
\data\class\pages\admin\contents\LC_Page_Admin_Contents_Banner.php 74: $tpl_onload = "";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_Banner.php 148: $tpl_onload .= "alert('ファイルをアップロードしました。');";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_Campaign.php 398: $site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script>'."\n";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_Campaign.php 399: $site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script>'."\n";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_Campaign.php 400: $site_frame .= '<!--{include file=$tpl_mainpage}-->'."\n";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_CampaignDesign.php 107: $site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script>'."\n";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_CampaignDesign.php 108: $site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script>'."\n";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_CampaignDesign.php 109: $site_frame .= '<!--{include file=$tpl_mainpage}-->'."\n";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_FileManager.php 74: $tpl_onload = "";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_FileManager.php 146: $tpl_onload .= "alert('フォルダを作成しました。');";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_FileManager.php 157: $tpl_onload .= "alert('ファイルをアップロードしました。');";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_FileManager.php 190: $this->tpl_onload .= $treeView . $tpl_onload;
\data\class\pages\admin\contents\LC_Page_Admin_Contents_FreePage.php 74: $tpl_onload = "";
\data\class\pages\admin\contents\LC_Page_Admin_Contents_FreePage.php 143: $tpl_onload .= "alert('ファイルをアップロードしました。');";
\data\class\pages\admin\design\LC_Page_Admin_Design.php 217: $tpl_arrBloc = array();
\data\class\pages\admin\design\LC_Page_Admin_Design.php 222: $tpl_arrBloc = $this->lfSetBlocData($arrBloc, $val, $tpl_arrBloc, $cnt);
\data\class\pages\admin\design\LC_Page_Admin_Design.php 229: if (!$this->lfChkBloc($val, $tpl_arrBloc)) {
\data\class\pages\admin\design\LC_Page_Admin_Design.php 231: $tpl_arrBloc = $this->lfSetBlocData($arrBloc, $val, $tpl_arrBloc, $cnt);
\data\class\pages\admin\design\LC_Page_Admin_Design.php 236: $this->tpl_arrBloc = $tpl_arrBloc;
\data\class\pages\admin\design\LC_Page_Admin_Design.php 237: $this->bloc_cnt = count($tpl_arrBloc);
\data\class\pages\admin\design\LC_Page_Admin_Design.php 358: * @param array $tpl_arrBloc データをセットする配列
\data\class\pages\admin\design\LC_Page_Admin_Design.php 362: function lfSetBlocData($arrBloc, $val, $tpl_arrBloc, $cnt) {
\data\class\pages\admin\design\LC_Page_Admin_Design.php 366: $tpl_arrBloc[$cnt]['target_id'] = $arrTarget[$val['target_id']];
\data\class\pages\admin\design\LC_Page_Admin_Design.php 367: $tpl_arrBloc[$cnt]['bloc_id'] = $val['bloc_id'];
\data\class\pages\admin\design\LC_Page_Admin_Design.php 368: $tpl_arrBloc[$cnt]['bloc_row'] =
\data\class\pages\admin\design\LC_Page_Admin_Design.php 377: $tpl_arrBloc[$cnt]['name'] = $bloc_name;
\data\class\pages\admin\design\LC_Page_Admin_Design.php 379: return $tpl_arrBloc;
\data\class\pages\admin\design\LC_Page_Admin_Design_MainEdit.php 100: $tpl_file = USER_TEMPLATE_PATH . "/" . TEMPLATE_NAME . "/" . $arrPageData[0]['filename'] . ".tpl";
\data\class\pages\admin\design\LC_Page_Admin_Design_MainEdit.php 101: if (file_exists($tpl_file)){
\data\class\pages\admin\design\LC_Page_Admin_Design_MainEdit.php 102: $arrPageData[0]['tpl_data'] = file_get_contents($tpl_file);
\data\class\pages\admin\design\LC_Page_Admin_Design_MainEdit.php 331: ,$tpl_dir // TPLディレクトリ
\data\class\pages\admin\mail\LC_Page_Admin_Mail.php 170: $tpl_path = "mail/query.tpl";
\data\class\pages\admin\mail\LC_Page_Admin_Mail.php 206: $objView->display($tpl_path);
\data\class\pages\admin\ownersstore\LC_Page_Admin_OwnersStore.php 36: var $tpl_subno = 'index';
\data\class\pages\cart\LC_Page_Cart.php 285: $tpl_deliv_free = $this->arrInfo['free_rule'] - $this->tpl_total_pretax;
\data\class\pages\cart\LC_Page_Cart.php 286: $this->tpl_deliv_free = $tpl_deliv_free;
\data\class\pages\mypage\LC_Page_Mypage.php 39: var $tpl_pageno;
\data\class\pages\products\LC_Page_Products_Detail.php 469: $tpl_subtitle = $arrFirstCat['name'];
\data\class\pages\products\LC_Page_Products_Detail.php 470: $this->tpl_subtitle = $tpl_subtitle;
\data\class\pages\products\LC_Page_Products_List.php 39: var $tpl_class_name1;
\data\class\pages\products\LC_Page_Products_List.php 42: var $tpl_class_name2;
\data\class\pages\products\LC_Page_Products_List.php 45: var $tpl_javascript;
\data\class\pages\products\LC_Page_Products_List.php 106: $tpl_subtitle = "";
\data\class\pages\products\LC_Page_Products_List.php 107: $tpl_comment = "";
\data\class\pages\products\LC_Page_Products_List.php 109: $tpl_subtitle = "検索結果";
\data\class\pages\products\LC_Page_Products_List.php 111: $tpl_subtitle = "全商品";
\data\class\pages\products\LC_Page_Products_List.php 114: $tpl_subtitle = $arrFirstCat['name'];
\data\class\pages\products\LC_Page_Products_List.php 144: $tpl_comment = $arrCat[0]['category_comment2'];
\data\class\pages\products\LC_Page_Products_List.php 190: $this->tpl_subtitle = $tpl_subtitle;
\data\class\pages\products\LC_Page_Products_List.php 191: $this->tpl_comment = $tpl_comment;
\data\class\pages\products\LC_Page_Products_List.php 245: $tpl_subtitle = "";
\data\class\pages\products\LC_Page_Products_List.php 246: $tpl_search_mode = false;
\data\class\pages\products\LC_Page_Products_List.php 255: $tpl_subtitle = "検索結果";
\data\class\pages\products\LC_Page_Products_List.php 256: $tpl_search_mode = true;
\data\class\pages\products\LC_Page_Products_List.php 258: $tpl_subtitle = "全商品";
\data\class\pages\products\LC_Page_Products_List.php 261: $tpl_subtitle = $arrFirstCat['name'];
\data\class\pages\products\LC_Page_Products_List.php 350: $this->tpl_subtitle = $tpl_subtitle;
\data\class\pages\products\LC_Page_Products_List.php 351: $this->tpl_search_mode = $tpl_search_mode;
\data\class\util\SC_Utils.php 1269: $tpl_name = $_GET['tpl'];
\data\class\util\SC_Utils.php 1271: $tpl_name = ereg_replace("^/", "", $path);
\data\class\util\SC_Utils.php 1272: $tpl_name = ereg_replace("/", "_", $tpl_name);
\data\class\util\SC_Utils.php 1273: $tpl_name = ereg_replace("(\.php$|\.html$)", ".tpl", $tpl_name);
\data\class\util\SC_Utils.php 1276: $template_path = TEMPLATE_FTP_DIR . $tpl_name;
\data\class\util\SC_Utils.php 1285: $objView->display($tpl_name);
\data\module\Smarty\libs\Smarty.class.php 577: * @param array|string $tpl_var the template variable name(s)
\data\module\Smarty\libs\Smarty.class.php 580: function assign($tpl_var, $value = null)
\data\module\Smarty\libs\Smarty.class.php 582: if (is_array($tpl_var)){
\data\module\Smarty\libs\Smarty.class.php 583: foreach ($tpl_var as $key => $val) {
\data\module\Smarty\libs\Smarty.class.php 589: if ($tpl_var != '')
\data\module\Smarty\libs\Smarty.class.php 590: $this->_tpl_vars[$tpl_var] = $value;
\data\module\Smarty\libs\Smarty.class.php 597: * @param string $tpl_var the template variable name
\data\module\Smarty\libs\Smarty.class.php 600: function assign_by_ref($tpl_var, &$value)
\data\module\Smarty\libs\Smarty.class.php 602: if ($tpl_var != '')
\data\module\Smarty\libs\Smarty.class.php 603: $this->_tpl_vars[$tpl_var] = &$value;
\data\module\Smarty\libs\Smarty.class.php 609: * @param array|string $tpl_var the template variable name(s)
\data\module\Smarty\libs\Smarty.class.php 612: function append($tpl_var, $value=null, $merge=false)
\data\module\Smarty\libs\Smarty.class.php 614: if (is_array($tpl_var)) {
\data\module\Smarty\libs\Smarty.class.php 615: // $tpl_var is an array, ignore $value
\data\module\Smarty\libs\Smarty.class.php 616: foreach ($tpl_var as $_key => $_val) {
\data\module\Smarty\libs\Smarty.class.php 631: if ($tpl_var != '' && isset($value)) {
\data\module\Smarty\libs\Smarty.class.php 632: if(!@is_array($this->_tpl_vars[$tpl_var])) {
\data\module\Smarty\libs\Smarty.class.php 633: settype($this->_tpl_vars[$tpl_var],'array');
\data\module\Smarty\libs\Smarty.class.php 637: $this->_tpl_vars[$tpl_var][$_mkey] = $_mval;
\data\module\Smarty\libs\Smarty.class.php 640: $this->_tpl_vars[$tpl_var][] = $value;
\data\module\Smarty\libs\Smarty.class.php 649: * @param string $tpl_var the template variable name
\data\module\Smarty\libs\Smarty.class.php 652: function append_by_ref($tpl_var, &$value, $merge=false)
\data\module\Smarty\libs\Smarty.class.php 654: if ($tpl_var != '' && isset($value)) {
\data\module\Smarty\libs\Smarty.class.php 655: if(!@is_array($this->_tpl_vars[$tpl_var])) {
\data\module\Smarty\libs\Smarty.class.php 656: settype($this->_tpl_vars[$tpl_var],'array');
\data\module\Smarty\libs\Smarty.class.php 660: $this->_tpl_vars[$tpl_var][$_key] = &$value[$_key];
\data\module\Smarty\libs\Smarty.class.php 663: $this->_tpl_vars[$tpl_var][] = &$value;
\data\module\Smarty\libs\Smarty.class.php 672: * @param string $tpl_var the template variable to clear
\data\module\Smarty\libs\Smarty.class.php 674: function clear_assign($tpl_var)
\data\module\Smarty\libs\Smarty.class.php 676: if (is_array($tpl_var))
\data\module\Smarty\libs\Smarty.class.php 677: foreach ($tpl_var as $curr_var)
\data\module\Smarty\libs\Smarty.class.php 680: unset($this->_tpl_vars[$tpl_var]);
\data\module\Smarty\libs\Smarty.class.php 932: * @param string $tpl_file name of template file
\data\module\Smarty\libs\Smarty.class.php 938: function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null)
\data\module\Smarty\libs\Smarty.class.php 944: if (!isset($tpl_file))
\data\module\Smarty\libs\Smarty.class.php 951: array('clear', &$this, &$dummy, $tpl_file, $cache_id, $compile_id, $exp_time));
\data\module\Smarty\libs\Smarty.class.php 954: 'auto_source' => $tpl_file,
\data\module\Smarty\libs\Smarty.class.php 979: * @param string $tpl_file name of template file
\data\module\Smarty\libs\Smarty.class.php 984: function is_cached($tpl_file, $cache_id = null, $compile_id = null)
\data\module\Smarty\libs\Smarty.class.php 993: 'tpl_file' => $tpl_file,
\data\module\Smarty\libs\Smarty.class.php 1016: * @param string $tpl_file
\data\module\Smarty\libs\Smarty.class.php 1021: function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null)
\data\module\Smarty\libs\Smarty.class.php 1027: 'auto_source' => $tpl_file,
\data\module\Smarty\libs\Smarty.class.php 1038: * @param string $tpl_file
\data\module\Smarty\libs\Smarty.class.php 1041: function template_exists($tpl_file)
\data\module\Smarty\libs\Smarty.class.php 1043: $_params = array('resource_name' => $tpl_file, 'quiet'=>true, 'get_source'=>false);
\data\module\Smarty\libs\Smarty.class.php 1802: * @param string $tpl_file
\data\module\Smarty\libs\Smarty.class.php 1803: * @param integer $tpl_line
\data\module\Smarty\libs\Smarty.class.php 1808: function _trigger_fatal_error($error_msg, $tpl_file = null, $tpl_line = null,
\data\module\Smarty\libs\Smarty.class.php 1816: if (isset($tpl_line) && isset($tpl_file)) {
\data\module\Smarty\libs\Smarty.class.php 1817: $this->trigger_error('[in ' . $tpl_file . ' line ' . $tpl_line . "]: $error_msg$info", $error_type);
\data\module\Smarty\libs\internals\core.read_cache_file.php 12: * @param string $tpl_file
\data\module\Smarty\libs\internals\core.read_cache_file.php 19: // $tpl_file, $cache_id, $compile_id, &$results
\data\module\Smarty\libs\internals\core.write_cache_file.php 12: * @param string $tpl_file
\data\module\Smarty\libs\internals\core.write_cache_file.php 19: // $tpl_file, $cache_id, $compile_id, $results

seasoft
投稿日時: 2008/9/10 10:47
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7365
Re: ファイル管理画面の alert 機能について
バグ報告に登録しておきました。
http://svn.ec-cube.net/open_trac/ticket/351


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

netwiz
投稿日時: 2008/9/10 9:56
対応状況: −−−
常連
登録日: 2008/9/9
居住地:
投稿: 47
Re: ファイル管理画面の alert 機能について
ありがとうございました。
その通りでした。

grep かけると、tpl_onload だけか、結構同じような
コーディングがありますね。
seasoft
投稿日時: 2008/9/10 9:26
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7365
Re: ファイル管理画面の alert 機能について
ソース未確認ですが、
【誤】$tpl_onload
【正】$this->tpl_onload
かも。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

netwiz
投稿日時: 2008/9/10 5:06
対応状況: −−−
常連
登録日: 2008/9/9
居住地:
投稿: 47
ファイル管理画面の alert 機能について
2.3.0-rc1 標準のインストール状態で、
コンテンツ管理のファイル管理で、メッセージがでないので、
教えていただきたいのですが、

class LC_Page_Admin_Contents_FileManager extends LC_Page {
の function process() { で

case 'upload':
// 画像保存処理
$ret = $objUpFile->makeTempFile('upload_file', false);
if($ret != "") {
$arrErr['upload_file'] = $ret;
} else {
$tpl_onload .= "alert('ファイルをアップロードしました。');";
}
echo var_dump($tpl_onload); <-- ここ追加
break;

とすると、var_dump は正しく表示されるのですが、ファイルアップロード後のタグソースは、
<body onload="preLoadImg('/html/user_data/packages/default/'); lnSetSelect('classcategory_id2_1', 'classcategory_id2_2','2',''); ">
となって、alert されませんでした。

$tpl_onload の設定を有効にする設定が別途あるのでしょうか?

ご教授いただけますよう、よろしく、お願いします
スレッド表示 | 古いものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,300名です
総投稿数は109,692件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1568
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.