foreach ($__LIST__ as $key => $sub) { ++$i; $mod = $i % 2; ?> <div class="thumimg"> <div class="image"> <a href="<?php echo url(articles, $sub["aid"]); ?> "><img src="<?php echo $sub["imgurl"]; ?> " /></a> </div> <div class="hdTitle"><?php echo msubstr1($sub["title"], 0, 18, 'utf-8', true); ?> </div> </div><?php } } } else { echo ""; } ?> <!--<div class="thumimg"> <div class="image"> <a href="#"><img src="../Public/images/index/1.png" /></a> </div> <div class="hdTitle">活动标题</div>
if ($nun_rows > 0) { $i = 1; foreach ($result as $row) { $entries = array(); $maillistsid = $row['maillistsid']; foreach ($listview_header as $col => $list) { if ($col == 'maillistsid') { $entries[] = $i; } elseif ($col == 'receiverinfo') { $entries[] = msubstr1($row[$col], 0, 30); } elseif ($col == 'totalnum') { $entries[] = "<font color=red>" . $row[$col] . "</font>"; } elseif ($col == 'maillistname') { $entries[] = '<a href="index.php?module=Relsettings&action=MailLogs&maillistsid=' . $maillistsid . '">' . $row[$col] . '</a>'; } elseif ($col == 'mailcontent') { $entries[] = htmlspecialchars(msubstr1($row[$col], 0, 30)); } elseif ($col == 'successrate') { if (empty($row[$col])) { $entries[] = "<font color=blue>0</font>"; } else { $entries[] = "<font color=blue>" . $row[$col] . "</font>"; } // }elseif($col == 'readrate'){ // if(empty($row[$col])){ // $entries[] = "<font color=green>0</font>"; // }else{ // $entries[] = "<font color=green>".$row[$col]."</font>"; // } } else { $entries[] = $row[$col]; }
function get_qunfas($id) { global $log, $singlepane_view; global $app_strings; global $adb; global $current_user; $log->debug("Entering get_qunfas(" . $id . ") method ..."); $query = "select ec_smslogs.* from ec_smslogs \n\t\t\t \t\t\t\tinner join ec_account \n\t\t\t\t\t\t\t\ton ec_account.phone = ec_smslogs.receiver_phone\n\t\t\t\t\t\t\twhere ec_account.accountid={$id} \n\t\t\t\t\t\t\tand ec_smslogs.userid = '" . $current_user->id . "' \n\t\t\t\t\t\t\torder by ec_smslogs.sendtime asc "; //and ec_smslogs.flag=1 $list_result = $adb->getList($query); $num_rows = $adb->num_rows($list_result); $header = array(); $header[] = "接收人"; $header[] = "接收人手机"; $header[] = "短信内容"; $header[] = "发送结果"; $header[] = "发送时间"; if ($num_rows && $num_rows > 0) { $row_i = 1; foreach ($list_result as $row) { $entries = array(); $entries[] = $row['receiver']; $entries[] = $row['receiver_phone']; $entries[] = msubstr1($row['sendmsg'], 0, 50); $entries[] = $row['result']; $entries[] = $row['sendtime']; $entries_list[] = $entries; $row_i++; } } if ($num_rows > 0) { $return_data = array('header' => $header, 'entries' => $entries_list); $log->debug("Exiting get_maillists method ..."); return $return_data; } }
if ($nun_rows > 0) { $i = 1; foreach ($result as $row) { $entries = array(); $id = $row['id']; foreach ($listview_header as $col => $list) { if ($col == 'reply') { if ($row['reply'] == 1) { $entries[] = "已回复"; } else { $entries[] = "<a href='javascript:changeReply(" . $id . ");'><font color=red>未回复</font></a>"; } } elseif ($col == 'content') { $t = strlen($row[$col]); if ($t > 150) { $entries[] = msubstr1($row[$col], 0, 50) . "<a href=\"index.php?module=Settings&action=DetailLiuyan&id=" . $id . "\">详细</a>"; } else { $entries[] = $row[$col]; } } else { $entries[] = $row[$col]; } } $listview_entries[$id] = $entries; $i++; } } $smarty->assign("LISTENTITY", $listview_entries); foreach ($listview_header as $key => $header) { if (in_array($key, $orderkeycol)) { $sorderimg = "";
<td class="lvtCol2" nowrap>发送结果</td> <td class="lvtCol2" nowrap>发送时间</td> </tr>'; if (!empty($record)) { $maillistinfos = $rel_focus->getMaillistsInfo($record); if ($maillistinfos && $maillistinfos != '') { $i = 1; foreach ($maillistinfos as $maillistinfo) { $infohtml .= '<tr bgcolor="white"> <td nowrap>' . $maillistinfo['receiver'] . '</td> <td nowrap>' . $maillistinfo['receiver_email'] . '</td> <td nowrap>' . $maillistinfo['subject'] . '</td> <td nowrap>' . msubstr1($maillistinfo['mailcontent'], 0, 50) . '</td> <td nowrap>' . $maillistinfo['result'] . '</td> <td nowrap>' . $maillistinfo['sendtime'] . '</td> </tr>'; $i++; } } } $infohtml .= '</table>'; if ($record != '') { $infohtml .= '<tr style="height: 20px;"><td><input class="crmbutton small create" type="button" value="发送邮件" name="Create" onclick="javascript:location.href=\'index.php?module=Maillists&action=ListView&idstring=' . $record . '&modulename=Accounts\'" accesskey="发送邮件" title="发送邮件"></td></tr>'; } } else { if ($type == 'Memdays') { $infohtml .= '<table style="background-color: rgb(234, 234, 234);" class="small" width="100%" border="0" cellpadding="3" cellspacing="1">'; $infohtml .= ' <tr style="height: 20px;">