CMS MADE SIMPLE FORGE

Form Browser

 

[#6017] can you add the following code at line 531 of Browser.class.php

avatar
Created By: Simon Brown (uptoeleven)
Date Submitted: 2011-01-18 14:29

Assigned To: Morten Poulsen (silmarillion)
Resolution: None
State: Open
Summary:
can you add the following code at line 531 of Browser.class.php
Detailed Description:
/*
 * outputs link urls to perform edit/delete/view tasks
 * current FBrowser is outputing html directly from the php class
 * this way of doing it is more flexible
 * and is better separation of the presentation and functional layer
 */

$vals[$i]->editURL =
$mod_ptr->CreateFrontendLink($id,$returnid,'user_edit_resp','',array('response_id'=>$vals[$i]->id,'form_id'=>$this->FormId,'browser_id'=>$this->Id,'fbrp_page'=>$this->Page,'fbrp_sort_field'=>$sortField,'fbrp_sort_dir'=>$sortDir),'',true);

$vals[$i]->deleteURL =
$mod_ptr->CreateFrontendLink($id,$returnid,'user_delete_resp','',array('response_id'=>$vals[$i]->id,'form_id'=>$this->FormId,'browser_id'=>$this->Id,'fbrp_page'=>$this->Page,'fbrp_sort_field'=>$sortField,'fbrp_sort_dir'=>$sortDir),$mod_ptr->Lang('are_you_sure_delete_resp'),true);

$vals[$i]->viewURL = $mod_ptr->CreateFrontendLink( $id, $returnid,
'user_browse_resp', '',
array('response_id'=>$vals[$i]->id,'form_id'=>$this->FormId,'browser_id'=>$this->Id,'fbrp_page'=>$this->Page,'fbrp_sort_field'=>$sortField,'fbrp_sort_dir'=>$sortDir),
'', true, true, '', false, '' ); // replace last '' with prettyurl

History

Comments
avatar
Date: 2015-02-22 02:37
Posted By: Simon Brown (uptoeleven)

4 years later - please assign it to me I can implement it.

It's not quite correct but will modify and implement properly.
      
Updates

Updated: 2015-02-22 02:37
resolution_id: => 5
assigned_to_id: 110 => 113