当前位置: 首页>>代码示例>>PHP>>正文


PHP gcms::detail2TXT方法代码示例

本文整理汇总了PHP中gcms::detail2TXT方法的典型用法代码示例。如果您正苦于以下问题:PHP gcms::detail2TXT方法的具体用法?PHP gcms::detail2TXT怎么用?PHP gcms::detail2TXT使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gcms的用法示例。


在下文中一共展示了gcms::detail2TXT方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

 $content[] = '<div class="table collapse">';
 $content[] = '<div class=td>';
 $content[] = '<span class="g-input icon-language"><select name=write_language id=write_language title="{LNG_PLEASE_SELECT} {LNG_LANGUAGE}">';
 foreach ($install_languages as $item) {
     $sel = $lang == $item ? ' selected' : '';
     $content[] = '<option value=' . $item . $sel . '>' . $item . '</option>';
 }
 $content[] = '</select></span>';
 $content[] = '</div>';
 $content[] = '<div class=td>&nbsp;<a id=write_go class="button go">{LNG_GO}</a></div>';
 $content[] = '</div>';
 $content[] = '</div>';
 // detail
 $content[] = '<div class=item>';
 $content[] = '<label for=write_detail>{LNG_CONTENTS}</label>';
 $content[] = '<div><textarea name=write_detail id=write_detail>' . gcms::detail2TXT($search, $lang) . '</textarea></div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = '<input type=hidden name=intro value=1>';
 $content[] = '</fieldset>';
 $content[] = '</form>';
 $content[] = '</section>';
 $content[] = '<script>';
 $content[] = '$G(window).Ready(function(){';
 $_SESSION['CKEDITOR'] = $_SESSION['login']['id'];
 $content[] = 'CKEDITOR.replace("write_detail", {';
 $content[] = 'toolbar:"Document",';
 $content[] = 'language:"' . LANGUAGE . '",';
开发者ID:goragod,项目名称:php-framework-benchmark,代码行数:31,代码来源:intro.php

示例2: foreach

     // language
     $content[] = '<div class=item>';
     $content[] = '<label for=email_language>{LNG_LANGUAGE}</label>';
     $content[] = '<span class="g-input icon-language"><select name=email_language id=email_language title="{LNG_EMAIL_LANGUAGE_COMMENT}">';
     foreach ($config['languages'] as $language) {
         $sel = $language == $email['language'] ? ' selected' : '';
         $content[] = '<option value=' . $language . $sel . '>' . $language . '</option>';
     }
     $content[] = '</select></span>';
     $content[] = '<div class=comment id=result_email_language>{LNG_EMAIL_LANGUAGE_COMMENT}</div>';
     $content[] = '</div>';
 }
 // detail
 $content[] = '<div class=item>';
 $content[] = '<label for=email_detail>{LNG_DETAIL} </label>';
 $content[] = '<div><textarea name=email_detail id=email_detail>' . gcms::detail2TXT($email, 'detail') . '</textarea></div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = gcms::get2Input($_GET);
 $content[] = '<input type=hidden id=email_id name=email_id value=' . $email['id'] . '>';
 $content[] = '</fieldset>';
 $lastupdate = $email['last_update'] == '' ? '-' : gcms::mktime2date($email['last_update']);
 $content[] = '<div class=lastupdate><span class=comment>{LNG_WRITE_COMMENT}</span>{LNG_LAST_UPDATE}<span id=lastupdate>' . $lastupdate . '</span></div>';
 $content[] = '</form>';
 $content[] = '</section>';
 $content[] = '<script>';
 $content[] = '$G(window).Ready(function(){';
 $_SESSION['CKEDITOR'] = $_SESSION['login']['id'];
开发者ID:goragod,项目名称:php-framework-benchmark,代码行数:31,代码来源:mailwrite.php

示例3: foreach

 foreach ($config['languages'] as $item) {
     $content[] = '<fieldset>';
     $content[] = '<legend><span>{LNG_CATEGORY_DETAIL}&nbsp;<img src="' . ($item == '' ? "../skin/img/blank.gif" : DATA_URL . 'language/' . $item . '.gif') . '" alt="' . $item . '"></span></legend>';
     // topic
     $content[] = '<div class=item>';
     $content[] = '<label for=category_topic_' . $item . '>{LNG_CATEGORY}</label>';
     $t = isset($topic[$item]) ? $topic[$item] : (isset($topic['']) && (!$multi_language || $item == LANGUAGE && !isset($topic[LANGUAGE])) ? $topic[''] : '');
     $content[] = '<span class="g-input icon-edit"><input type=text id=category_topic_' . $item . ' name=category_topic[' . $item . '] maxlength=64 title="{LNG_CATEGORY_COMMENT}" value="' . $t . '"></span>';
     $content[] = '<div class=comment id=result_category_topic_' . $item . '>{LNG_CATEGORY_COMMENT}</div>';
     $content[] = '</div>';
     // detail
     $content[] = '<div class=item>';
     $content[] = '<div>';
     $content[] = '<label for=category_detail_' . $item . '>{LNG_DESCRIPTION}</label>';
     $t = isset($detail[$item]) ? $detail[$item] : (isset($detail['']) && (!$multi_language || $item == LANGUAGE && !isset($detail[LANGUAGE])) ? $detail[''] : '');
     $content[] = '<span class="g-input icon-file"><textarea id=category_detail_' . $item . ' name=category_detail[' . $item . '] rows=3 maxlength=200 title="{LNG_CATEGORY_DESCRIPTION_COMMENT}">' . gcms::detail2TXT($t) . '</textarea></span>';
     $content[] = '</div>';
     $content[] = '<div class=comment id=result_category_detail_' . $item . '>{LNG_CATEGORY_DESCRIPTION_COMMENT}</div>';
     $content[] = '</div>';
     // icon
     $content[] = '<div class=item>';
     $t = isset($icon[$item]) ? $icon[$item] : (isset($icon['']) && (!$multi_language || $item == LANGUAGE && !isset($icon[LANGUAGE])) ? $icon[''] : '');
     $content[] = '<div class=usericon><span><img id=icon_' . $item . ' src=' . (is_file(DATA_PATH . "document/{$t}") ? DATA_URL . "document/{$t}" : WEB_URL . "/{$index['default_icon']}") . ' alt=icon></span></div>';
     $content[] = '<label for=category_icon_' . $item . '>{LNG_ICON}</label>';
     $content[] = '<span class="g-input icon-upload"><input type=file class=g-file id=category_icon_' . $item . ' name=category_icon_' . $item . ' title="{LNG_UPLOAD_CATEGORY_ICON_COMMENT}" accept="' . gcms::getEccept(array('jpg', 'png', 'gif')) . '" data-preview=icon_' . $item . '></span>';
     $content[] = '<div class=comment id=result_category_icon_' . $item . '>{LNG_UPLOAD_CATEGORY_ICON_COMMENT}</div>';
     $content[] = '</div>';
     $content[] = '</fieldset>';
 }
 // submit
 $content[] = '<fieldset class=submit>';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_categorywrite.php

示例4: foreach

 $sql .= " ORDER BY " . $orders[$order][1];
 $sql .= " LIMIT {$start}, {$list_per_page}";
 foreach ($db->customQuery($sql) as $item) {
     $id = $item['id'];
     $tr = '<tr id=L_' . $id . '>';
     $tr .= '<th headers=c0 id=r' . $id . ' scope=row class=topic>' . $item['key'] . '</th>';
     foreach ($install_languages as $k) {
         if ($item[$k] == '') {
             $t = '';
         } elseif ($item['type'] == 'array') {
             $datas = unserialize($item[$k]);
             $t = implode(', ', $datas);
         } else {
             $t = strip_tags(str_replace(array("\r", "\n"), array('', ' '), $item[$k]));
         }
         $tr .= '<td headers="r' . $id . ' c' . $k . '" class="' . ($k == LANGUAGE ? 'mobile' : 'tablet') . '" title="' . gcms::detail2TXT($t) . '">' . gcms::detail2TXT(gcms::cutstring($t, 50)) . '</td>';
     }
     $tr .= '<td headers="r' . $id . ' c1" class="center tablet">' . $item['owner'] . '</td>';
     $tr .= '<td headers="r' . $id . ' c2" class="center tablet">' . $item['type'] . '</td>';
     $tr .= '<td headers="r' . $id . ' c3" class=menu><a class=icon-edit href="{URLQUERY?src=language&module=languageedit&id=' . $id . '&spage=' . $page . '}" title="{LNG_EDIT}"></a></td>';
     $tr .= '<td headers="r' . $id . ' c3" class=menu><a class=icon-delete id=delete_language_' . $id . ' title="{LNG_DELETE}"></a></td>';
     $tr .= '</tr>';
     $content[] = $tr;
 }
 $content[] = '</tbody>';
 $content[] = '</table>';
 // แบ่งหน้า
 $url = '<a href="{URLQUERY?module=language&page=%d}" title="{LNG_DISPLAY_PAGE} %d">%d</a>';
 $content[] = '<div class=splitpage>' . gcms::pagination($totalpage, $page, $url) . '</div>';
 $content[] = '<div class=table_nav>';
 // เพิ่มข้อความ
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:language.php

示例5: array

                     $save[$k1][$k] = $v1;
                 }
             }
         }
     } else {
         $save[''] = $language;
     }
 } else {
     $save[''] = array();
 }
 $i = 0;
 foreach ($save as $key => $value) {
     $content[] = '<tr id=M_' . $i . '>';
     $content[] = '<td data-text="{LNG_KEY}"><label class=g-input><input type=text name=save_array[] value="' . $key . '" title="{LNG_KEY}"></label></td>';
     foreach ($install_languages as $a => $k) {
         $content[] = '<td data-text=' . $k . '><label class=g-input><textarea rows=3 name=language_' . $k . '[] title="' . $k . '">' . gcms::detail2TXT($value, $k) . '</textarea></label></td>';
     }
     $content[] = '<td class=icons><div><a class=icon-plus title="{LNG_ADD}"></a><a class=icon-minus title="{LNG_DELETE}"></a></div></td>';
     $content[] = '</tr>';
     $i++;
 }
 $content[] = '</tbody>';
 $content[] = '</table>';
 $content[] = '<div class=comment>{LNG_LANGUAGE_COMMENT}</div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = '<input type=hidden id=save_id name=save_id value=' . (int) $language['id'] . '>';
 $content[] = '<input type=hidden name=languageedit value=1>';
开发者ID:goragod,项目名称:php-framework-benchmark,代码行数:31,代码来源:languageedit.php

示例6: implode

 $content[] = '<div class=breadcrumbs><ul><li>' . implode('</li><li>', $a) . '</li></ul></div>';
 $content[] = '<section>';
 $content[] = '<header><h1 class=icon-width>' . $title . '</h1></header>';
 $content[] = '<form id=setup_frm class=setup_frm method=post action=index.php>';
 $content[] = '<fieldset>';
 $content[] = '<legend><span>{LNG_WIDGETS_MARQUEE}</span></legend>';
 // marquee_speed
 $content[] = '<div class=item>';
 $content[] = '<label for=marquee_speed>{LNG_MARQUEE_SPEED}</label>';
 $content[] = '<span class="table g-input icon-config"><input type=number id=marquee_speed name=marquee_speed value="' . gcms::getVars($config, 'marquee_speed', '') . '" title="{LNG_MARQUEE_SPEED_COMMENT}"></span>';
 $content[] = '<div class=comment id=result_marquee_speed>{LNG_MARQUEE_SPEED_COMMENT}</div>';
 $content[] = '</div>';
 // detail
 $content[] = '<div class=item>';
 $content[] = '<label for=marquee_text >{LNG_MARQUEE_DETAILS}</label>';
 $content[] = '<div><textarea name=marquee_text id=marquee_text>' . gcms::detail2TXT($config, 'marquee_text') . '</textarea></div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = '</fieldset>';
 $content[] = '</form>';
 $content[] = '</section>';
 $content[] = '<script>';
 $content[] = '$G(window).Ready(function(){';
 $_SESSION['CKEDITOR'] = $_SESSION['login']['id'];
 $content[] = 'CKEDITOR.replace("marquee_text", {';
 $content[] = 'toolbar:"Document",';
 $content[] = 'language:"' . LANGUAGE . '",';
 $content[] = 'height:300,';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_setup.php

示例7: array

 $content[] = '<label for=map_lantigude>{LNG_LANTIGUDE}</label>';
 $content[] = '<span class="width g-input icon-location"><input type=text name=map_lantigude id=map_lantigude value="' . $config['map_lantigude'] . '"></span>';
 $content[] = '</div>';
 $content[] = '<div class="width bottom"><a id=find_me class="button go icon-gps hidden" title="{LNG_FIND_ME}"></a></div>';
 $content[] = '<div class="width bottom"><a id=map_search class="button go icon-search" title="{LNG_SEARCH}"></a></div>';
 $content[] = '</div>';
 $content[] = '<div class=comment>{LNG_MAP_POSITION_COMMENT}</div>';
 $content[] = '<div id=map_canvas style="height:' . $config['map_height'] . 'px">Google Map</div>';
 $content[] = '</fieldset>';
 $content[] = '</fieldset>';
 $content[] = '<fieldset>';
 $content[] = '<legend><span>{LNG_WIDGETS_MAP_INFO_SECTION}</span></legend>';
 // info
 $content[] = '<div class=item>';
 $content[] = '<label for=map_info>{LNG_GOOGLE_INFO}</label>';
 $content[] = '<span class="g-input icon-location"><textarea name=map_info id=map_info rows=3 title="{LNG_GOOGLE_INFO_COMMENT}">' . (empty($config['map_info']) ? '' : gcms::detail2TXT(str_replace(array('\\r', '\\n'), array("\r", "\n"), $config['map_info']))) . '</textarea></span>';
 $content[] = '<div class=comment id=result_map_info>{LNG_GOOGLE_INFO_COMMENT}</div>';
 $content[] = '</div>';
 // info position
 $content[] = '<fieldset class=item>';
 $content[] = '<legend>{LNG_INFO_POSITION}</legend>';
 $content[] = '<div class=input-groups-table>';
 $content[] = '<div class=width>';
 $content[] = '<label for=info_latigude>{LNG_LATIGUDE}</label>';
 $content[] = '<span class="g-input icon-location"><input type=text name=info_latigude id=info_latigude value="' . $config['map_info_latigude'] . '"></span>';
 $content[] = '</div>';
 $content[] = '<div class=width>';
 $content[] = '<label for=info_lantigude>{LNG_LANTIGUDE}</label>';
 $content[] = '<span class="g-input icon-location"><input type=text name=info_lantigude id=info_lantigude value="' . $config['map_info_lantigude'] . '"></span>';
 $content[] = '</div>';
 $content[] = '</div>';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_setup.php

示例8: str_replace

 $content[] = '<span class=width><img src="' . $icon . '" id=imgIcon alt="' . $index['ext'] . '"></span>';
 $content[] = '<span class="width g-input icon-edit"><input type=text id=edocument_topic name=edocument_topic maxlength=64 value="' . $index['topic'] . '" title="{LNG_EDOCUMENT_TOPIC_COMMENT}"></span>';
 $content[] = '</div>';
 $content[] = '<div class=comment id=result_edocument_topic>{LNG_EDOCUMENT_TOPIC_COMMENT}</div>';
 $content[] = '</div>';
 // file
 $content[] = '<div class=item>';
 $t = str_replace(array('{TYPE}', '{SIZE}'), array(implode(', ', $config['edocument_file_typies']), gcms::formatFileSize($config['edocument_upload_size'])), $lng['LNG_EDOCUMENT_FILE_BROWSER_COMMENT']);
 $content[] = '<label for=edocument_file>{LNG_BROWSE_FILE}</label>';
 $content[] = '<span class="g-input icon-upload"><input type=file class=g-file id=edocument_file name=edocument_file title="' . $t . '"></span>';
 $content[] = '<div class=comment id=result_edocument_file>' . $t . '</div>';
 $content[] = '</div>';
 // detail
 $content[] = '<div class=item>';
 $content[] = '<label for=edocument_detail>{LNG_DESCRIPTION}</label>';
 $content[] = '<span class="g-input icon-file"><textarea id=edocument_detail name=edocument_detail rows=5 title="{LNG_EDOCUMENT_DESCRIPTION_COMMENT}">' . gcms::detail2TXT($index, 'detail') . '</textarea></span>';
 $content[] = '<div class=comment id=result_edocument_detail>{LNG_EDOCUMENT_DESCRIPTION_COMMENT}</div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = '&nbsp;<label>{LNG_EDOCUMENT_SEND_EMAIL_TO}&nbsp;<input type=checkbox name=send_email value=1></label>';
 $content[] = gcms::get2Input($_GET);
 $content[] = '<input type=hidden name=write_id value=' . (int) $index['id'] . '>';
 $content[] = '</fieldset>';
 $content[] = '</form>';
 $content[] = '</section>';
 $content[] = '<script>';
 $content[] = '$G(window).Ready(function(){';
 $content[] = 'new GForm("setup_frm","' . WEB_URL . '/modules/edocument/admin_write_save.php").onsubmit(doFormSubmit);';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_write.php

示例9: date

     // relate
     $content[] = '<div class=item>';
     $content[] = '<label for=write_relate_' . $language . '>{LNG_RELATE}</label>';
     $content[] = '<span class="g-input icon-document"><input type=text id=write_relate_' . $language . ' name=write_relate_' . $language . ' value="' . $item['relate'] . '" maxlength=255 title="{LNG_RELATE_COMMENT}"></span>';
     $content[] = '<div class=comment id=result_write_relate_' . $language . '>{LNG_RELATE_COMMENT}</div>';
     $content[] = '</div>';
     // sdetail
     $content[] = '<div class=item>';
     $content[] = '<label for=write_description_' . $language . '>{LNG_DESCRIPTION}</label>';
     $content[] = '<span class="g-input icon-file"><textarea id=write_description_' . $language . ' name=write_description_' . $language . ' rows=3 maxlength=255 title="{LNG_DESCRIPTION_COMMENT}">' . gcms::detail2TXT($item, 'description') . '</textarea></span>';
     $content[] = '<div class=comment id=result_write_description_' . $language . '>{LNG_DESCRIPTION_COMMENT}</div>';
     $content[] = '</div>';
     // detail
     $content[] = '<div class=item>';
     $content[] = '<label for=write_detail_' . $language . '>{LNG_DETAIL}</label>';
     $content[] = '<div><textarea name=write_detail_' . $language . ' id=write_detail_' . $language . '>' . gcms::detail2TXT($item, 'detail') . '</textarea></div>';
     $content[] = '</div>';
     $content[] = '</fieldset>';
 }
 $content[] = '<fieldset id=options>';
 $content[] = '<legend><span>{LNG_DETAIL_OPTIONS}</span></legend>';
 // alias
 $content[] = '<div class=item>';
 $content[] = '<label for=write_alias>{LNG_ALIAS}</label>';
 $content[] = '<span class="g-input icon-world"><input type=text id=write_alias name=write_alias value="' . $index['alias'] . '" maxlength=64 title="{LNG_ALIAS_COMMENT}"></span>';
 $content[] = '<div class=comment id=result_write_alias>{LNG_ALIAS_COMMENT}</div>';
 $content[] = '</div>';
 // create_date
 preg_match('/([0-9]{4,4}\\-[0-9]{2,2}\\-[0-9]{2,2})\\s([0-9]+):([0-9]+)/', date('Y-m-d H:i', $index['create_date']), $match);
 $content[] = '<div class=item>';
 $content[] = '<label for=write_create_date>{LNG_ARTICLE_DATE}</label>';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_write.php

示例10: foreach

 // keywords
 $content[] = '<div class=item>';
 $content[] = '<label for=write_keywords>{LNG_KEYWORDS}</label>';
 $content[] = '<span class="g-input icon-tags"><textarea name=write_keywords id=write_keywords rows=3 maxlength=255 title="{LNG_KEYWORDS_COMMENT}">' . gcms::detail2TXT($index, 'keywords') . '</textarea></span>';
 $content[] = '<div class=comment id=result_write_keywords>{LNG_KEYWORDS_COMMENT}</div>';
 $content[] = '</div>';
 // description
 $content[] = '<div class=item>';
 $content[] = '<label for=write_description>{LNG_DESCRIPTION}</label>';
 $content[] = '<span class="g-input icon-file"><textarea name=write_description id=write_description rows=3 maxlength=255 title="{LNG_DESCRIPTION_COMMENT}">' . gcms::detail2TXT($index, 'description') . '</textarea></span>';
 $content[] = '<div class=comment id=result_write_description>{LNG_DESCRIPTION_COMMENT}</div>';
 $content[] = '</div>';
 // detail
 $content[] = '<div class=item>';
 $content[] = '<label for=write_detail>{LNG_DETAIL}</label>';
 $content[] = '<div><textarea name=write_detail id=write_detail>' . gcms::detail2TXT($index, 'detail') . '</textarea></div>';
 $content[] = '</div>';
 // published date
 $content[] = '<div class=item>';
 $content[] = '<label for=write_published_date>{LNG_PUBLISHED_DATE}</label>';
 $content[] = '<span class="g-input icon-calendar"><input type=date id=write_published_date name=write_published_date value="' . $index['published_date'] . '" title="{LNG_PUBLISHED_DATE_COMMENT}"></span>';
 $content[] = '<div class=comment>{LNG_PUBLISHED_DATE_COMMENT}</div>';
 $content[] = '</div>';
 // published
 $content[] = '<div class=item>';
 $content[] = '<label for=write_published>{LNG_PUBLISHED}</label>';
 $content[] = '<span class="g-input icon-published1"><select id=write_published name=write_published title="{LNG_PUBLISHED_SETTING}">';
 foreach ($lng['LNG_PUBLISHEDS'] as $i => $item) {
     $sel = $index['published'] == $i ? ' selected' : '';
     $content[] = '<option value=' . $i . $sel . '>' . $item . '</option>';
 }
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_write.php

示例11:

 $content[] = '<section>';
 $content[] = '<header><h1 class=icon-write>' . $title . '</h1></header>';
 // ฟอร์มเพิ่ม แก้ไข หมวด
 $content[] = '<form id=setup_frm class=setup_frm method=post action=index.php>';
 $content[] = '<fieldset>';
 $content[] = '<legend><span>{LNG_GALLERY_ALBUM_DETAIL}</span></legend>';
 // topic
 $content[] = '<div class=item>';
 $content[] = '<label for=gallery_topic>{LNG_GALLERY_ALBUM}</label>';
 $content[] = '<span class="g-input icon-edit"><input type=text id=gallery_topic name=gallery_topic maxlength=64 title="{LNG_GALLERY_ALBUM_COMMENT}" value="' . $index['topic'] . '"></span>';
 $content[] = '<div class=comment id=result_gallery_topic>{LNG_GALLERY_ALBUM_COMMENT}</div>';
 $content[] = '</div>';
 // detail
 $content[] = '<div class=item>';
 $content[] = '<label for=gallery_detail>{LNG_DESCRIPTION}</label>';
 $content[] = '<span class="g-input icon-file"><textarea id=gallery_detail name=gallery_detail rows=3 maxlength=200 title="{LNG_GALLERY_ALBUM_DESCRIPTION_COMMENT}">' . gcms::detail2TXT($index, 'detail') . '</textarea></span>';
 $content[] = '<div class=comment id=result_gallery_detail>{LNG_GALLERY_ALBUM_DESCRIPTION_COMMENT}</div>';
 $content[] = '</div>';
 // icon
 $content[] = '<div class=item>';
 $icon = !empty($index['image']) && is_file(DATA_PATH . "gallery/{$index['id']}/thumb_{$index['image']}") ? DATA_URL . "gallery/{$index['id']}/thumb_{$index['image']}" : WEB_URL . '/modules/gallery/img/nopicture.png';
 $content[] = '<div class=usericon><span><img src="' . $icon . '" id=imgIcon alt=imgIcon></span></div>';
 $content[] = '<label for=gallery_pic>{LNG_BROWSE_FILE}</label>';
 $content[] = '<span class="g-input icon-upload"><input type=file class=g-file id=gallery_pic name=gallery_pic accept="' . gcms::getEccept($config['gallery_image_type']) . '" title="{LNG_IMAGE_UPLOAD_RESIZE_COMMENT}" data-preview=imgIcon></span>';
 $content[] = '<div class=comment id=result_gallery_pic>{LNG_IMAGE_UPLOAD_RESIZE_COMMENT}</div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = '<input type=hidden id=galleryId name=galleryId value=' . (int) $index['id'] . '>';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_write.php

示例12: is_file

 $content[] = '</div>';
 // thumb
 $content[] = '<div class=item>';
 $thumb = is_file(DATA_PATH . "video/{$index['youtube']}.jpg") ? DATA_URL . "video/{$index['youtube']}.jpg" : WEB_URL . '/modules/video/img/nopicture.jpg';
 $content[] = '<div class=usericon><img src="' . $thumb . '" id=imgIcon></div>';
 $content[] = '</div>';
 // topic
 $content[] = '<div class=item>';
 $content[] = '<label for=write_topic>{LNG_TOPIC}</label>';
 $content[] = '<span class="g-input icon-edit"><input type=text id=write_topic name=write_topic maxlength=64 title="{LNG_VIDEO_TOPIC_COMMENT}" value="' . $index['topic'] . '"></span>';
 $content[] = '<div class=comment id=result_write_topic>{LNG_VIDEO_TOPIC_COMMENT}</div>';
 $content[] = '</div>';
 // description
 $content[] = '<div class=item>';
 $content[] = '<label for=write_description>{LNG_DESCRIPTION}</label>';
 $content[] = '<span class="g-input icon-file"><textarea id=write_description name=write_description rows=3 title="{LNG_VIDEO_DESCRIPTION_COMMENT}">' . gcms::detail2TXT($index, 'description') . '</textarea></span>';
 $content[] = '<div class=comment id=result_write_description>{LNG_VIDEO_DESCRIPTION_COMMENT}</div>';
 $content[] = '</div>';
 $content[] = '</fieldset>';
 // submit
 $content[] = '<fieldset class=submit>';
 $content[] = '<input type=submit class="button large save" value="{LNG_SAVE}">';
 $content[] = '<input type=hidden id=write_id name=write_id value=' . (int) $index['id'] . '>';
 $content[] = '</fieldset>';
 $content[] = '</form>';
 $content[] = '</section>';
 $content[] = '<script>';
 $content[] = '$G(window).Ready(function(){';
 $content[] = 'new GForm("setup_frm","' . WEB_URL . '/modules/video/admin_write_save.php").onsubmit(doFormSubmit);';
 $content[] = '});';
 $content[] = '</script>';
开发者ID:phannack,项目名称:GCMS,代码行数:31,代码来源:admin_write.php


注:本文中的gcms::detail2TXT方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。