camchatix Posted October 18, 2017 Posted October 18, 2017 (edited) Рвботает Edited October 18, 2017 by camchatix
nightfly Posted October 18, 2017 Posted October 18, 2017 (edited) P.S. абонбазой хоть не свети, а? Edited October 18, 2017 by nightfly
Pautiina Posted October 24, 2017 Posted October 24, 2017 (edited) Рвботает И так, после того как убрана база абанов и я теперь могу ответить в теме-продолжим. Тут наверное действительно больше проблема в магии. И так, попробуйте привести функцию к такому виду, раз уж речь зашла о магии: function web_TsmsShowAllSMS ($date='') { $date = mysql_real_escape_string($date); if (!empty($date)) { $where = "WHERE `send_time` LIKE '".$date."%'"; } else { $where = ''; } $allSms = array(); $allSms = tsms_GetAllSMS($where); $lighter = 'onmouseover="this.className = \'row2\';" onmouseout="this.className = \'row3\';" '; $cells = wf_TableCell(__('ID')); $cells.= wf_TableCell(__('Msg ID')); $cells.= wf_TableCell(__('Mobile')); $cells.= wf_TableCell(__('Sign')); $cells.= wf_TableCell(__('Message')); $cells.= wf_TableCell(__('WAP')); $cells.= wf_TableCell(__('Cost')); $cells.= wf_TableCell(__('Send time')); $cells.= wf_TableCell(__('Sended')); $cells.= wf_TableCell(__('Status')); $rows = wf_TableRow($cells, 'row1'); if (!empty($allSms)) { foreach ($allSms as $io=>$each) { $cells = wf_TableCell($each['id']); $cells.= wf_TableCell($each['msg_id']); $cells.= wf_TableCell($each['number']); $cells.= wf_TableCell($each['sign']); $msg = wf_modal(__('Show'), __('SMS'), $each['message'], '', '300', '200'); $cells.= wf_TableCell($msg); $cells.= wf_TableCell($each['wappush']); $cells.= wf_TableCell($each['cost']); $cells.= wf_TableCell($each['send_time']); $cells.= wf_TableCell($each['sended']); $cells.= wf_TableCell($each['status']); $rows.= wf_tag('tr', false, 'row3', $lighter); $rows.= $cells; $rows.= wf_tag('tr', true); } } $result = wf_TableBody($rows, '100%', '0', 'sortable'); return ($result); } Edited October 24, 2017 by Pautiina
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now