if ($total > 0) { echo "{$view_number}〜{$view_max_number}件目 /全{$total}件<br />"; } else { echo "全{$total}件<br />"; } echo "<hr />"; echo "\n"; $loop = 0; $driver_count = 0; //タクシー表示 if (!empty($list)) { foreach ($list as $value) { //ドライバーカウントが表示件数の値以上かつ最大表示件数以下の時に処理 if ($value['driver_id'] && $view_number - 1 <= $driver_count && $loop <= $view_limit - 1) { if ($value['recomended'] == 1) { echo sfJpMobile::getEmoji()->convert(''); //指でOK; echo '<span style="color:red">オススメ</span><br />'; } $image_url = sfConfig::get('sf_mixi_index_url') . '/images/noimage.jpg'; if (!empty($value['pic1_url'])) { $image_url = $value['pic1_url']; } if ($sf_request->getAttribute('userAgent')->isEZweb()) { echo '<table style="margin:0px"><tr><td colspan="2" width="100" height="100">'; echo '<img src="' . $image_url . '" width="100" height="100" alt="写真" align="left" style="float:left;" />'; echo '</td>'; echo '<td>'; echo '<span style="font-size:xx-small;"><font size="1">'; echo '概算運賃<br />'; echo number_format($value['fare']);
/** * 出力コンテンツの変換 * @return null */ private function _convertContent() { $content = $this->getContext()->getResponse()->getContent(); // 絵文字変換 if (!sfJpMobile::isDocomo()) { $content = sfJpMobile::getEmoji()->convert($content); } // 出力文字コードの変更 if (!sfJpMobile::isMobile() || !sfJpMobile::isSoftbank() && !sfJpMobile::isWillcom()) { $content = mb_convert_encoding($content, 'SJIS-win', 'UTF-8'); } $this->getContext()->getResponse()->setContent($content); }