how to add condition in jquery.datatable.min template for codeigniter? |
[eluser]Unknown[/eluser]
i want to add a if condition and it will check if pubsihed value is 1 or 0 and then will show checkbox. if published value is 1 then checkbox will be checked and if value is 0 then checkbox will be unchecked. [removed] <tr id="${lang_code},${catid}"> <td> ${serial}</td> <td> <input type="checkbox" name="newsletter[]" id="checkbox" value="${lang_code},${catid},${published}"> </td> <td>${catid}</td> <td>${parent_id}</td> <td>${lang_code}</td> <td>${title}</td> <td>${published} <?= echo "my name is monir"; ?> <input type="checkbox" name="published" id="published" value="${published}"> </td> <td><a class="updateBtn" href="${updateLink}"><?=lang('category_manager_edit_text');?> </a>|<a class="translationBtn" href="${translationLink}"><?=lang('category_manager_translation_text');?></a> | <a class="deleteBtn" href="${deleteLink}"><?=lang('category_manager_delete_text');?></a></td> <?php $i++; ?> </tr> [removed]
[eluser]CroNiX[/eluser]
See form_checkbox(): http://ellislab.com/codeigniter/user-gui...elper.html |
Welcome Guest, Not a member yet? Register Sign In |