예제 #1
0
 /**
  * Show a drop-down box with all the SMS carriers in the DB
  *
  * @return void
  */
 function carrierSelect()
 {
     $carrier = new Sms_carrier();
     $cnt = $carrier->find();
     $this->elementStart('ul', 'form_data');
     $this->elementStart('li');
     // TRANS: Label for mobile carrier dropdown menu in SMS settings.
     $this->element('label', array('for' => 'carrier'), _('Mobile carrier'));
     $this->elementStart('select', array('name' => 'carrier', 'id' => 'carrier'));
     $this->element('option', array('value' => 0), _('Select a carrier'));
     while ($carrier->fetch()) {
         $this->element('option', array('value' => $carrier->id), $carrier->name);
     }
     $this->elementEnd('select');
     $this->element('p', 'form_guide', sprintf(_('Mobile carrier for your phone. ' . 'If you know a carrier that accepts ' . 'SMS over email but isn\'t listed here, ' . 'send email to let us know at %s.'), common_config('site', 'email')));
     $this->elementEnd('li');
     $this->elementEnd('ul');
 }