Welcome Guest, Not a member yet? Register   Sign In
condition based action should be changed?

I am using table row details with action column  . In this action once process completed show "completed button" otherwise show  edit icon. 

need suggestion.

Attached Files Thumbnail(s)

Simply use if … else …, or the ? : operator.
PHP Code:
$row['status'] == 'finished' anchor('link1','Completed','class="btn"') : anchor('link2','Edit','class="btn"');

<td><?= $actionbutton;?></td> 

Theme © iAndrew 2016 - Forum software by © MyBB