- // @TODO Rewritings: aid->admin_id in template
- $content = array(
- 'select' => "<input type=\"checkbox\" name=\"sel[".$content['id']."]\" class=\"admin_normal\" value=\"1\" />",
- 'aid' => $content['admin_id'],
- 'email_link' => generateEmailLink($content['admin_id']),
- 'alogin' => $content['alogin'],
- 'id' => $content['id'],
- 'sw' => $SW,
- 'title' => $content['title'],
- 'template' => $content['template'],
- 'joined' => $joined,
- 'start_date' => generateDateTime($content['start_time'], '2'),
- 'end_date' => generateDateTime($content['end_time'] , '2'),
- 'active_lnk' => translateYesNo($content['is_active']),
- 'notify_lnk' => translateYesNo($content['send_notify']),
- 'auto_lnk' => translateYesNo($content['auto_add_new_user']),
- 'notified' => translateYesNo($content['notified']),
- 'prices_cnt' => translateComma(GET_TOTAL_DATA($content['id'], 'rallye_prices', 'id', 'rallye_id', true)),
- 'descr' => COMPILE_CODE($content['descr']),
- 'min_users' => $content['min_users'],
- 'min_prices' => $content['min_prices'],
+ $row = array(
+ 'select' => '<input type="checkbox" name="sel[' . $data['id'] . ']" class="form_field" value="1" />',
+ 'admin_id' => $data['admin_id'],
+ 'id' => $data['id'],
+ 'title' => $data['title'],
+ 'template' => $data['template'],
+ 'users_content' => $users,
+ 'start_date' => generateDateTime($data['start_time'], 2),
+ 'end_date' => generateDateTime($data['end_time'] , 2),
+ 'is_active' => $data['is_active'],
+ 'send_notify' => $data['send_notify'],
+ 'auto_add_new_user' => $data['auto_add_new_user'],
+ 'notified' => $data['notified'],
+ 'prices_cnt' => countSumTotalData($data['id'], 'rallye_prices', 'id', 'rallye_id', true),
+ 'descr' => $data['descr'],
+ 'min_users' => $data['min_users'],
+ 'min_prices' => $data['min_prices'],