2007年11月17日土曜日
foreach ($list->result() as $address) {
$this->email->clear();
$this->email->to($address->email);
$this->email->from($this->config->item('admin_email'), 'Name');
$this->email->subject('Newsletter for ' . date ("F jS, Y"));
$this->email->message($this->load->view('newsletter/daily_newsletter', $data, true));
$email_sent = $this->email->send();
// this is assigned to a var rather then just
// if ($this->email->send()) because I needed to manually
// toggle that back and forth, and it just seemed easier
if ($email_sent) {
$this->user_model->update_sent_issue($address->email, $issueNumber);
$output .= '
' . $address->email . ' ';
} else {
$output .= '
Could not send to ' . $address->email . ' ';
}
}
$this->email->clear();
$this->email->to($address->email);
$this->email->from($this->config->item('admin_email'), 'Name');
$this->email->subject('Newsletter for ' . date ("F jS, Y"));
$this->email->message($this->load->view('newsletter/daily_newsletter', $data, true));
$email_sent = $this->email->send();
// this is assigned to a var rather then just
// if ($this->email->send()) because I needed to manually
// toggle that back and forth, and it just seemed easier
if ($email_sent) {
$this->user_model->update_sent_issue($address->email, $issueNumber);
$output .= '
} else {
$output .= '
}
}
2007年11月13日火曜日
2007年11月9日金曜日
2007年10月31日水曜日
テーブルCSS 空欄セル
CSSでボーダーを指定しているテーブルのセルが空欄だった場合にwindowsのIEではつぶれて表示されてしまう。パワー回避策としては全てのセルに を記述する。楽な回避策は以下のCSSを記述する。
table, td, th {
border-collapse: collapse;
margin: 0;
padding: 0;
}
table, td, th {
border-collapse: collapse;
margin: 0;
padding: 0;
}
登録:
投稿 (Atom)