$language[$ky] = $val['description']; } echo CHtml::dropDownList('body_language', 'en', $language); ?> </td> </tr> <tr> <td align="right" style="text-align: right;"> <label for='template_usein'><?php $clang->eT("Select Template Usein : "); ?> </label> </td> <td> <?php $templateusein = GetEmailUseInArray(); echo CHtml::dropDownList('template_usein', '', $templateusein, array('ajax' => array('type' => 'POST', 'data' => array('emailUseIN' => 'js:this.value'), 'url' => CController::createUrl('admin/get/sa/fetchtemplatevariable'), 'update' => '#variabledetail'))); ?> </td> </tr> <tr> <td align="right" style="text-align: right; width: 20%"> <label for='email_body'><?php $clang->eT("Email Body : "); ?> </label> </td> <td> <textarea rows="3" cols="10" name="email_body" id="email_body"></textarea> </td> <?php
function getEmailUseInWord($id) { $allkeys = GetEmailUseInArray(); if (array_key_exists($id, $allkeys)) { return $allkeys[$id]; } else { return 'Not Found'; } }