<if condition="in_array($vv['p_name'],$res_3)">
    <label style="margin-left:30px"><input name="join_pro[]" type="checkbox" value="{$vv['p_name']}"  checked="checked" />{$vv['p_name']}
	    <input type="hidden" name="p_id[]" value="{$vv['p_id']}">
    </label> 
<else />
	<label style="margin-left:30px"><input name="join_pro[]" type="checkbox"  value="{$vv['p_name']}"  />{$vv['p_name']}
	    <input type="hidden" name="p_id[]" value="{$vv['p_id']}">
    </label> 
</if>