echo "<td>{$val['description']}</td>"; echo "<td>{$val['amount']}</td></tr>"; } echo "</table>"; echo "</div><div class='mr'></div></div></div>"; echo "<div class='ft'><div class='bl'></div><div class='ft-center'></div><div class='br'></div></div></div>"; } break; case "smsBalance": $sms->retrieve_settings(); if (empty($sms->params['sms_instance_id'])) { echo "<div style='background-color:#fff;padding:10px;text-align:center;'>You have not specified an SMS gateway for this purpose. "; echo "Click <a href='./index.php?module=Administration&action=smsProvider'>here</a> to setup your gateway account.</div>"; break; } $res = $sms->authenticate($sms->params['sms_instance_id']); echo "<div class='moduleTitle'><h2>{$parent_link}SMS Credit Balance</h2></div>"; echo "<table class='edit view small' width='100%' border='0' cellspacing='1' cellpadding='0' ><tr><td>"; echo "<div style='text-align:center; font-size:14px;padding:50px;'>"; if ($res == 'ERROR') { echo MSG_UNVERIFIED; } else { if ($res == "POSTPAID") { echo "You are subscribed to a postpaid account."; } else { $res = (empty($res) or $res == 0) ? "0.00" : $res; echo "You have <strong>{$res}</strong> sms credits in your account."; } } echo "</div>"; echo '</td></tr></table>';