<th width="60px">Pos</th> <th width="150px">Name</th> <th width="150px">Company</th> <th width="150px">Category</th> <th width="75px">Live</th> <th width="120px">Updated</th> <th width="120px">Created</th> <th width="25px"></th> <th width="60px"></th> <th width="20px"></th> </tr> </thead> <tbody> <?php foreach ($testimonials as $testimonial) { echo t_build::admin_table_row($testimonial, $this->owner->apikey); } ?> </tbody> </table> <!-- <ul class="with-selected"> <li>With Selected:</li> <li>Send Email</li> <li>Publish</li> <li>Unpublish</li> <li>Set Category</li> </ul> --> <div id="share-window" style="display:none">
public function save() { if (!$_POST) { $this->rsp->msg = 'Nothing Sent'; $this->rsp->send(); } $testimonial = $this->get_testimonial(); $testimonial->name = $_POST['name']; $testimonial->company = $_POST['company']; $testimonial->c_position = $_POST['position']; $testimonial->url = $_POST['url']; $testimonial->location = $_POST['location']; $testimonial->body = $_POST['body']; $testimonial->tag_id = $_POST['tag']; $testimonial->publish = empty($_POST['publish']) ? 0 : 1; $testimonial->lock = empty($_POST['lock']) ? 0 : 1; $testimonial->rating = $_POST['rating']; $testimonial->save(); $this->rsp->status = 'success'; $this->rsp->msg = 'Testimonial Saved!'; $this->rsp->id = $testimonial->id; $this->rsp->exists = 0 < $this->testimonial_id ? true : false; $this->rsp->image = $testimonial->image; $this->rsp->rowHtml = t_build::admin_table_row($testimonial, $this->owner->apikey); $this->rsp->send(); }