Changeset 652 for temp


Ignore:
Timestamp:
2006/12/10 21:59:15 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/mylinks/modlink.php

    r650 r652  
    7777    $xoopsOption['template_main'] = 'mylinks_modlink.html'; 
    7878    include XOOPS_ROOT_PATH."/header.php"; 
    79     $result = $xoopsDB->query("select cid, title, url, logourl from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid and status>0"); 
     79    $result = $xoopsDB->query("select cid, title, url, logourl, developer, release_date, development_time, site_status, customize_flag from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid and status>0"); 
    8080    $xoopsTpl->assign('lang_requestmod', _MD_REQUESTMOD); 
    81     list($cid, $title, $url, $logourl) = $xoopsDB->fetchRow($result); 
     81    list($cid, $title, $url, $logourl, $developer, $release_date, $development_time, $site_status, $customize_flag) = $xoopsDB->fetchRow($result); 
     82        switch($site_status) { 
     83        case 1: 
     84        $site_status = _MD_NEW_OPEN; 
     85        break; 
     86        case 2: 
     87        $site_status = _MD_RENEWAL; 
     88        break; 
     89        default: 
     90        $site_status = _MD_NEW_OPEN; 
     91    } 
     92 
     93    switch($customize_flag) { 
     94        case 1: 
     95        $customize = _MD_ON; 
     96        break; 
     97        case 2: 
     98        $customize = _MD_OFF; 
     99        break; 
     100        default: 
     101        $customize = _MD_OFF; 
     102    }    
     103     
     104     
    82105    $result2 = $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("mylinks_text")." WHERE lid=$lid"); 
    83106    list($description)=$xoopsDB->fetchRow($result2); 
    84     $xoopsTpl->assign('link', array('id' => $lid, 'rating' => number_format($rating, 2), 'title' => $myts->htmlSpecialChars($title), 'url' => $myts->htmlSpecialChars($url), '$logourl' => $myts->htmlSpecialChars($logourl), 'updated' => formatTimestamp($time,"m"), 'description' => $myts->htmlSpecialChars($description), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring)); 
     107    $xoopsTpl->assign('link', array('id' => $lid, 'rating' => number_format($rating, 2), 'title' => $myts->htmlSpecialChars($title), 'url' => $myts->htmlSpecialChars($url), '$logourl' => $myts->htmlSpecialChars($logourl), 'updated' => formatTimestamp($time,"m"), 'description' => $myts->htmlSpecialChars($description), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring, 'developer' => $developer, 'release_date' => $release_date, 'development_time' => $development_time, 'site_status' => $site_status, 'customize_flag' => $customize)); 
    85108    $xoopsTpl->assign('lang_linkid', _MD_LINKID); 
    86109    $xoopsTpl->assign('lang_sitetitle', _MD_SITETITLE); 
Note: See TracChangeset for help on using the changeset viewer.