Jump to content

Recommended Posts

I want to add {include file="$categoriesCell"},,,,Categoriescell is a blank tpl if the user havnt selected any department. I was thinking about adding it in the code where i have made all the lines

 

 

{section name=i loop=$departments_list->mDepartments}
        {* verify if the department is selected
           to decide what CSS style to use *}
        {if ($departments_list->mSelectedDepartment == $departments_list->mDepartments[i].department_id)}
          {assign var=class_d value="DepartmentSelected"}
          
              
        {else}
          {assign var=class_d value="DepartmentUnselected"}
        {/if}
        <table class="{$class_d}" border="0" cellpadding="0" cellspacing="0" width="100%" ><tr><td height="35" width="100%">
        {* generate a link for a new department in the list *}
        <a 
           href="{$departments_list->mDepartments[i].onclick}">
           » {$departments_list->mDepartments[i].name}
           
        </a>
  ------------------------------------------------- // i wanted to add the include file here      
       
      </td></tr>
      {/section}

 

Thanks alot

Link to comment
https://forums.phpfreaks.com/topic/54941-include-problems/#findComment-271721
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.