Changeset 4749 for temp/trunk
- Timestamp:
- 2006/09/14 20:08:04 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 3 edited
-
data/Smarty/templates/admin/contents/index.tpl (modified) (previous)
-
data/class/SC_View.php (modified) (1 diff)
-
html/admin/contents/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_View.php
r3549 r4749 33 33 $this->_smarty->register_function("sf_mb_convert_encoding","sf_mb_convert_encoding"); 34 34 $this->_smarty->register_function("sf_mktime","sf_mktime"); 35 $this->_smarty->register_function("sf_date","sf_date"); 35 $this->_smarty->register_function("sf_date","sf_date"); 36 $this->_smarty->register_function("str_replace","str_replace"); 36 37 37 38 if(ADMIN_MODE == '1') { -
temp/trunk/html/admin/contents/index.php
r4748 r4749 146 146 $sql = "SELECT *, cast(substring(news_date,1, 10) as date) as cast_news_date FROM dtb_news WHERE del_flg = '0' ORDER BY rank DESC"; 147 147 $objPage->list_data = $conn->getAll($sql); 148 $objPage->list_data[ 0]["cast_news_data"] = str_replace("-", "/", $objPage->list_data["cast_news_data"]);148 $objPage->list_data["cast_news_data"] = str_replace("-", "/", $objPage->list_data["cast_news_data"]); 149 149 $objPage->line_max = count($objPage->list_data); 150 150 $sql = "SELECT MAX(rank) FROM dtb_news WHERE del_flg = '0'"; // rank¤ÎºÇÂçÃͤò¼èÆÀ
Note: See TracChangeset
for help on using the changeset viewer.
