I'm new to phprunner and I'm doing a project (website) using it, I have two questions:
question 1:
I added custom button to school table view page and I want to [size="4"]redirect to edit page of rating table[/size] when this button is clicked, I added the following line
to clientafter event of button : location.href="rating_edit.php" I know I should add something to this line also which is the id(key of table rating) of record to be updated, where I should add this key ???
question 2:
In school table list page, I'm trying to display rating as stars for each school(for each table row). I know how to display stars using jquery plugin and it is working with me in view page, I need to add SPAN in html where I want to display stars and add jquery function to this span in javascript onload event.
My problem: in list page we have only [size="4"]one row displayed in visual editor and html[/size]. we have {BEGIN grid_row} before this row in html. I tried adding stars span inside row but it was displayed for the first row in table only and according not working because the rating value is a field in the row and it is different for each row.
I added span to row as follow:
<SPAN id="starOv" style="vertical-align: -7px;" display="inline"> </SPAN>
and in javascript I should do the following:
$("#starOv").raty({
hints: ['Terrible', 'Poor', 'Average', 'Very good', 'Excellent'],
readOnly: true,
score: ????
});
??? should be row field
How I can handle these two issues ???
Best regards