CodeIgniter Forums

Full Version: how to add condition in jquery.datatable.min template for codeigniter?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


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.

<tr id="${lang_code},${catid}">
<td> ${serial}</td>
&lt;input type="checkbox" name="newsletter[]" id="checkbox" value="${lang_code},${catid},${published}"&gt;
<td>${published} &lt;?= echo "my name is monir"; ?&gt;
&lt;input type="checkbox" name="published" id="published" value="${published}"&gt;

<td><a class="updateBtn" href="${updateLink}">&lt;?=lang('category_manager_edit_text');?&gt; </a>|<a class="translationBtn" href="${translationLink}">&lt;?=lang('category_manager_translation_text');?&gt;</a> | <a class="deleteBtn" href="${deleteLink}">&lt;?=lang('category_manager_delete_text');?&gt;</a></td>

&lt;?php $i++; ?&gt;


El Forum

See form_checkbox():