Location: PHPKode > projects > SimpleHRM > simplehrm-1.0-beta1/simplehrm-1.0-beta1/templates/default/report/employeeJoiningsList.tpl.html
{assign var=emp_sts value=$util->get_values_from_config('EMPLOYMENT_STATUS')}
{assign var=m value=$sm.next_prev->module}
{if defined($smarty.const.LINK_SEPARATOR)}
	{assign var=sep value=$smarty.const.LINK_SEPARATOR}
{else}
	{assign var=sep value="-"}
{/if}

	<div class="cont">
    <div class="cont_bg_top"></div>
    <div class="cont_bg_mdl">
    	<div class="cont_hdr1 fltlft">
            <div class="cont_hdr_lft fltlft"></div>
            <div class="cont_hdr_mdl1 fltlft">
                <div class="fltlft">Employees list ({$sm.next_prev->total})</div>
                <div class="fltrht">
                </div>
                <div class="clear"></div>
            <input type="hidden" name="qstart" value="{$sm.next_prev->start}" id="qstart">
            <input type="hidden" name="rshow" value="{$sm.show}" id="rshow">
            <input type="hidden" name="rtot" value="{$sm.next_prev->total}" id="rtot">
            </div>
            <div class="cont_hdr_rht fltlft"></div>
	        <div class="clrbth"></div>
        </div>
        <div class="clrbth"></div>
        <div class="cont_txt">
            	<div class="txtbg_top fltlft"></div>
                <div class="txtbg_mdl fltlft">
                
                {if $sm.list}
                    <table width="97%" cellpadding="0" cellspacing="0" border="0" align="center" class="tbl_listing" style="margin-bottom:25px;">
                        <thead>
                            <tr>
                                <th class="email">Profile Pic</th>
                                {foreach from=$sm.field item=item key=key name=foric}
                                    {if $smarty.session.user_type eq 99 || $item.0 neq Id}
                                            {if $key == $smarty.session.$m.sort_by}
                                            {if $smarty.session.$m.sort_order=="ASC"}
                                            {assign var=cls value="asc"}
                                            {else}
                                            {assign var=cls value="desc"}
                                            {/if}
                                        {else}
                                            {assign var=cls value=""}
                                        {/if}
                                        <th class="email {$cls} {if $smarty.foreach.foric.last}brdr_none{/if}" title="Click on {$item.0} to sort">
                                        {if $item.1!=0}
                                            {if $sm.ajax}
                                                <a href="javascript:get_next_page('##APP_ROOT_URL##{$sm.uri}{$sep}sort_by{$sep}{$key}',0,0,'{$smarty.request.page}_{$smarty.request.choice}')" class="tab_lable">{if $item!=""}{$item.0}{else}{$key}{/if}</a>
                                            {else}
                                                <a href="##APP_ROOT_URL##{$sm.uri}{$sep}sort_by{$sep}{$key}"><b>{if $item!=""}{$item.0}{else}{$key}{/if}</b></a>
                                            {/if}
                                        {else}
                                            <b>{if $item!=""}{$item.0}{else}{$key}{/if}</b>
                                        {/if}
                                        </th>
                                    {/if}
                                {/foreach}
                            </tr>
                        </thead>
                        <tbody>
                        {section name=cur loop=$sm.list}
                        {assign var=x value=$sm.list[cur]}
                            <tr class="{cycle values="even,odd"}">
                            <td onclick="empDetail('{$x.id_employee}');" style="cursor:pointer;">
                                    {if $x.avatar eq ''}
                                        <img src="##LBL_SITE_URL##templates/css_theme/img/avatar/search/hrm_{if $x.gender eq M}male.jpg{else}female.jpg{/if}" title="Profile Pic">&emsp;
                                        
                                    {else}
                                        <img src="##LBL_SITE_URL##image/thumb4_search/avatar/{$x.id_employee}_{$x.avatar}" title="Profile Pic" style="height:50px;width:50px;">
                                    {/if}
                            </td>
                            <td onclick="empDetail('{$x.id_employee}');" style="cursor:pointer;" title="See details of {$x.name}"><b>{$x.name}</b></td>
                            <td>{$x.joined_date|date_format:"%B ,%Y"}</td>
                            <td align="left">{$x.annual_sal}</td>
                            <td>{$x.job_title_name|capitalize:true|default:"NA"}</td>
                            <td>{$sm.res_team[$x.team]|capitalize:true|default:"NA"}</td>
                            <td>{$sm.res_department[$x.department]|capitalize:true|default:"NA"}</td>
                            <td>{$sm.res_div[$x.division]|capitalize:true|default:"NA"}</td>
                            <td>
                                {if $sm.res_terminate[$x.id_employee]}
                                    <a style="cursor:pointer;" onclick="showTerminateReason('{$x.id_employee}');" title="See Details">{$emp_sts.2}</a>
                                {else}
                                    {$emp_sts[$x.emp_status]}
                                {/if}
                            </td>
                            </tr>
                            {/section} 
                        </tbody>
                    </table>
                    {if $sm.type=='advance'}
                        <div class="pagination_adv">
                            {$sm.next_prev->generateadv()}
                        </div>
                    {elseif $sm.type=='box'}
                        <div class="pagination_box">
                            <div align="center">{$sm.next_prev->generate()}</div>
                        </div>
                    {elseif $sm.type=='normal'}
                        <div class="pagination">
                            <div align="center">{$sm.next_prev->generate()}</div>
                        </div>
                    {elseif $sm.type=='nextprev'}
                        <div class="pagination">
                            <div align="center">{$sm.next_prev->onlynextprev()}</div>
                        </div>
                    {elseif $sm.type=='extra'}
                        <div class="pagination_box">
                            <div align="center">{$sm.next_prev->generateextra()}</div>
                        </div>
                    {else}
                        {if $sm.type!='no'}
                            <div>
                                <div align="center">{$sm.next_prev->generate()}</div>
                            </div>
                        {/if}
                    {/if}
                {else}
                    <br><div align="center">No employees found.</div><br>
                {/if}
                </div>
                <div class="txtbg_btm fltlft"></div>
                <div class="clrbth"></div>
        </div>
    </div>
    <div class="cont_bg_btm"></div>
</div>
Return current item: SimpleHRM