84 $mailingInput =
'<select name="'.$this->getFieldName(
'MAILING_ID').
'">';
85 $mailingDb = MailingTable::getList(array(
86 'select' => array(
'ID',
'NAME',),
87 'order' => array(
'NAME' =>
'ASC',
'ID' =>
'DESC')
89 while($mailing = $mailingDb->fetch())
91 $inputSelected = ($mailing[
'ID'] == $this->
getFieldValue(
'MAILING_ID') ?
'selected' :
'');
92 $mailingInput .=
'<option value="'.$mailing[
'ID'].
'" '.$inputSelected.
'>';
93 $mailingInput .= htmlspecialcharsbx($mailing[
'NAME']);
94 $mailingInput .=
'</option>';
96 $mailingInput .=
'</select>';
99 $booleanValues = array(
106 $sentInput =
'<select name="'.$this->getFieldName(
'SEND').
'">';
107 foreach($booleanValues as $k => $v)
109 $inputSelected = ($k == $this->
getFieldValue(
'SEND') ?
'selected' :
'');
110 $sentInput .=
'<option value="'.$k.
'" '.$inputSelected.
'>';
111 $sentInput .= htmlspecialcharsbx($v);
112 $sentInput .=
'</option>';
114 $sentInput .=
'</select>';
117 $readInput =
'<select name="'.$this->getFieldName(
'READ').
'">';
118 foreach($booleanValues as $k => $v)
120 $inputSelected = ($k == $this->
getFieldValue(
'READ') ?
'selected' :
'');
121 $readInput .=
'<option value="'.$k.
'" '.$inputSelected.
'>';
122 $readInput .= htmlspecialcharsbx($v);
123 $readInput .=
'</option>';
125 $readInput .=
'</select>';
128 $clickInput =
'<select name="'.$this->getFieldName(
'CLICK').
'">';
129 foreach($booleanValues as $k => $v)
131 $inputSelected = ($k == $this->
getFieldValue(
'CLICK') ?
'selected' :
'');
132 $clickInput .=
'<option value="'.$k.
'" '.$inputSelected.
'>';
133 $clickInput .= htmlspecialcharsbx($v);
134 $clickInput .=
'</option>';
136 $clickInput .=
'</select>';
139 $unsubInput =
'<select name="'.$this->getFieldName(
'UNSUB').
'">';
140 foreach($booleanValues as $k => $v)
142 $inputSelected = ($k == $this->
getFieldValue(
'UNSUB') ?
'selected' :
'');
143 $unsubInput .=
'<option value="'.$k.
'" '.$inputSelected.
'>';
144 $unsubInput .= htmlspecialcharsbx($v);
145 $unsubInput .=
'</option>';
147 $unsubInput .=
'</select>';
153 <td>'.Loc::getMessage(
'sender_connector_recipient_mailing').
'</td>
154 <td>'.$mailingInput.
'</td>
158 <td>'.$sentInput.
'</td>
162 <td>'.$readInput.
'</td>
166 <td>'.$clickInput.
'</td>
170 <td>'.$unsubInput.
'</td>