Location: PHPKode > projects > Business Customer and Lead Management > ILMS_Beta_Release1/templates/createRoles1.tpl
{include file ='userManagementHeader.tpl'}
<form name="form1" method="post" action="">
 {if $ViewRolesRights eq "1"}
<div id="editRoles" style="display:none">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td>
	 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td colspan="3">
	      <table cellpadding="0" cellspacing="0" border="0" width="100%">
		<TR>
		   <TD class="table_top_left">&nbsp;</TD>
		   <TD class="table_top_center">
		      <table cellspacing="0" border="0" cellpadding="0" width="100">
			 <TR>
			    <td class="heading_left" width="3" ><img src="http://{$site}/images/spacer.gif" width="9" height="1"></td>
			    <td class="heading_center" nowrap width="175">{if $Roleid NEQ ""}Update Roles{else}Create Roles{/if}</td>
			    <td class="heading_right" width="9"><img src="http://{$site}/images/spacer.gif" width="9" height="1"></td>
			 </tr>
		       </table>
		    </TD>
		    <TD class="table_top_right">&nbsp;</td>
		 </TR>
	      </table>
	   </td>
	 </tr>
      </table>
     </td>
   </tr>
   <tr>
    <td>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	 <tr>
	    <td colspan="3" align="center"><span class="message">{$msg}</span></td>
         </tr>             
         <tr>
	    <td valign="top" bgcolor="#AC0B0B" width="2"></td>
	    <td align="center" valign="top">
	        <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
	           <tr style="height:20">
	             <td colspan="5"></td>
                   </tr>
	           <tr>
	             <td class="alternatetablerow" width="9%">&nbsp;</td>
	             <td class="alternatetablerow"><span class="controllabel">Role Name</span> <sup><span class="mandatory">*</span></sup></td>
	             <td class="alternatetablerow" colspan="3">
	               <input type="text" name="txtRoleName" value="{$txtRoleName|stripslashes}" size="20" maxlength="45" class="textbox_input">
		     </td>
	             <td class="alternatetablerow" width="9%">&nbsp;</td>
	           </tr>
	           <tr height="24">
		     <td width="9%">&nbsp;</td>
		     <td valign="top"><span class="controllabel">Available</span> <span class="controllabelred">Profiles</span></td>
		     <td valign="top">
		        <SELECT NAME="group[]" SIZE="5" multiple >
			  {html_options values=$ObjectID output=$ObjectName } 
		        </SELECT>
		     </td>
		     <td>	
		        <table>
			  <tr>
			     <td>
			        <INPUT TYPE="BUTTON" class="controllabel" VALUE="Move -->" ONCLICK="moveOptions(document.form1['group[]'], document.form1['group1[]'])"></td>
			  </tr>
			  <tr>
			      <td>
			         <INPUT TYPE="BUTTON" class="controllabel" VALUE="<--Move"  ONCLICK="moveOptions(document.form1['group1[]'], document.form1['group[]'])"></td>
			  </tr>
			  <tr>
			      <td>
			         <INPUT TYPE="BUTTON" class="controllabel" VALUE="Move All" ONCLICK="moveAll(document.form1['group[]'], document.form1['group1[]'])"></td>
			  </tr>
			  <tr>
			      <td>
			         <INPUT TYPE="BUTTON" class="controllabel" VALUE="Remove All" ONCLICK="RemoveAll(document.form1['group1[]'], document.form1['group[]'])"></td>
			  </tr>
		       </table>
		     </td>
		     <td valign="top">
		         <span class="controllabel">Selected</span> <span class="controllabelred">Profiles</span><span class="mandatory">*</span></td>
		     <td valign="top">
		      <SELECT NAME="group1[]" SIZE="5" multiple >
			  		{html_options values=$ObjectIDSelected output=$ObjectNameSelected } 
			  	</SELECT>
		     </td>
		  	</tr>
	    </table>
     </td>
    </tr>
   </table>
  </td>
  <td valign="top" bgcolor="#AC0B0B" width="2"></td>
 </tr>
 <tr>
   <td>
     <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
           <td valign="top" bgcolor="#AC0B0B" width="2"></td>
           <td>&nbsp;</td>
           <td valign="top" bgcolor="#AC0B0B" width="2"></td>
        </tr>
        <tr>
           <td valign="top" bgcolor="#AC0B0B" width="2"></td>
           <td align="center">
	      <table cellpadding="3" cellspacing="0" border="0">
	         <tr>
	            <td align="center" colspan="3">
		    
		    {if $EditRolesRights eq "1"}
		    <input type="button" class="button_submit" name="save"  onclick="chk('{$Roleid}','form1')">
		    {elseif $AddRolesRights == 1 && $Roleid == 0} 
		    <input type="button" class="button_submit" name="save"  onclick="chk('{$Roleid}','form1')">
		    {/if}
		    &nbsp;
		    </td>
	     		</tr>
	      </table>
            </td>
            <td valign="top" bgcolor="#AC0B0B" width="2"></td>
          </tr>
       </table>
      </td>
     </tr>
     <tr>
        <td>
           <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                  <td align="left" width="40" valign="top" height="40" ><img src="images/bottom_left_curve.gif" width="60" height="40"></td>
                  <td background="images/bottom_center.gif" >&nbsp;</td>
                  <td align="right" width="60"><img src="images/bottom_right_curve.gif" width="60" height="40"></td>
              </tr>
           </table>
				</td>
     	</tr>
  	</table>
	</div>


<div id="SearchRoleType">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
     <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="9"><img  src="images/topleftcurve.png" width="9" height="10"></td>
    <td valign="top" background="images/horizontal.png"><img id="abc" src="http://{$site}/images/spacer.gif" width="1" height="10"></td>
    <td width="11"><img id="abc" src="images/toprightcurve.png" width="11" height="10"></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="middle" bgcolor="#AC0B0B" width="1"></td>
    <td align="center" valign="middle">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					 <td width="21%" nowrap>&nbsp;&nbsp;&nbsp;<span class="controllabelblack">Search by RoleName</span></td>
					 <td width="25%">
					    <input type="text" name="Rolename" value="{$Rolename|stripslashes}" size="20" maxlength="100" class="textbox_input" id="Rolename">
					 </td>
					 <td>
						<input type="button" name="Submit" class="button_filter" onclick="fnc_loadRoleManagement('1')">
					 </td>
					 </tr>
				 </table>
			</td>
			<td valign="top" bgcolor="#AC0B0B" width="1"></td>
		</tr>
	</table>
  <!--</td>
  </tr>-->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
		<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
			 <tr>
					<td align="left" width="9"><img id="abc" src="images/bottomleftcurve.png" width="9" height="10" border="0"></td>
					<td valign="baseline" background="images/horizontal1.png"><img id="abc" src="images/spacer.gif" width="1" height="10"></td>
					<td align="right" width="10"><img id="abc" src="images/bottomrightcurve1.png" width="10" height="10" border="0"></td>
				</tr>
	  	</table>
		</td>
	</tr>
 </table>
</div>	 
	<tr>
  	<td>&nbsp;</td>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

  </tr>
  <tr>
  	<td>
		  <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
          <td width="10"><img src="images/top-left-thick.png" width="10" height="34"></td>
          <td width="34" background="images/horizontal-thick.gif">&nbsp;&nbsp;</td>
          <td align="left" valign="top" width="104">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>
								<td class="heading_left_search"><img src="http://{$site}/images/spacer.gif" width="9" height="1"></td>
								<td class="heading_center" nowrap>Roles</td>
								<td class="heading_right_search"><img src="http://{$site}/images/spacer.gif" width="9" height="1"></td>
						  </tr>
			    	</table>
          </td>
          <td align="left" valign="middle" background="images/horizontal-thick.gif">&nbsp;</td>
					{if $AddRolesRights eq "1"}
					<td align="left" valign="top" width="180"> 
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>		
                <td width="9" class="heading_left_search">&nbsp;</td>
								<td class="heading_center" nowrap>
									<a href="javascript:void(0)" class="toplinkswhite" onclick="fnc_OpenRolesDiv('{$intPageNumber}');">Create Roles</a>
								</td>
                <td width="9" class="heading_right_search">&nbsp;</td>
							</tr>
					  </table>					    
          </td>
	  {/if}
          <!--<td align="left" valign="middle" background="images/horizontal-thick.gif">&nbsp;</td>-->
					<td width="40" align="left" valign="middle" background="images/horizontal-thick.gif">&nbsp;</td>
          <td width="190" align="left" valign="top" background="images/horizontal-thick.gif"> 
            <table border="0" cellpadding="0" cellspacing="0">
					    <TR>
								<td class="heading_left_search">&nbsp;</td>
								<td class="heading_center" width="100">
									<table border="0" cellpadding="0" cellspacing="0">
										<TR>
											<td>
											{if $intPageNumber gt 1}
												<a href="javascript:void(0)" class="toplinkswhite" onclick="fnc_loadRoleManagement('1')"><img id="abc" src="images/arrow-left-final.png" width="11" height="12" border="0"></a>
											{else}
												<img src="http://{$site}/images/spacer.gif" width="11" height="1">
											{/if}
											</td>
											<td>&nbsp;</td>
											<td>
											 {if $intPageNumber gt 1}
												 <a href="javascript:void(0)" class="toplinkswhite" onclick="fnc_loadRoleManagement('{$intPageNumber-1}')"><img id="abc" src="images/arrow-left.png" width="10" height="10" border="0"></a>
											 {else}
													<img src="http://{$site}/images/spacer.gif" width="10" height="1">
											 {/if}
											</td>
											<td>&nbsp;</td>
											<td>
												{if $NumRows gt 0}
													<input name="txtPageNumber" type="text" maxlength="4" class="input2" value="{$intPageNumber}" id="txtPageNumber" size="2" onkeypress="fnc_txtPageNavigation('form1','{$intTotalpages}')">
												{/if}
											</td>
											<td>&nbsp;</td>
											<td nowrap>
												{if $NumRows gt 0}
												<span class="textbold-white"> of {$intTotalpages}</span>
												{/if}
											</td>
											<td>&nbsp;</td>
											<td>
												{if $intTotalpages gt $intPageNumber}
													<a href="javascript:void(0)" class="toplinkswhite" onclick="fnc_loadRoleManagement('{$intPageNumber+1}')"><img id="abc" src="images/arrow-right.png" width="10" height="10" border="0"></a>													
												{else}	
													<img src="http://{$site}/images/spacer.gif" width="10" height="1">
												{/if}
											</td>
											<td>&nbsp;</td>
											<td>
												{if $intTotalpages gt $intPageNumber}
													<a href="javascript:void(0)" class="toplinkswhite" onclick="fnc_loadRoleManagement('{$intTotalpages}')"><img id="abc" src="images/arrow-right-final.png" width="11" height="12" border="0"></a>
												{else}
													<img src="http://{$site}/images/spacer.gif" width="11" height="1">
												{/if}
											</td>
										</tr>
								   </table>
								</td>
								<td class="heading_right_search">&nbsp;</td>
							</tr>
					  </table>
          </td>
          <td width="10" align="right" valign="baseline"><img src="images/top-right-thick.png" width="10" height="34"></td>
				 </tr>
  		 </table>
		  </td>
  	 </tr>
  		<tr>
  			<td>
  				<table width="100%" border="0" cellpadding="0" cellspacing="0">
  					<tr>
  						<td valign="top" bgcolor="#AC0B0B" width="2"></td>
  						<td>&nbsp;</td>
  						<td valign="top" bgcolor="#AC0B0B" width="2"></td>
  					</tr>
  				</table>
  			</td>
  		</tr>
  		<tr>
  			<td valign="top">
  				<table width="100%" border="0" cellpadding="0" cellspacing="0">
  					<tr>
  						<TD>
								<table cellspacing="0" border="0" cellpadding="0" width="100%">
								  <TR>
								  	<td>
								  		<table cellspacing="0" border="0" cellpadding="0" width="100%">
								  			<tr bgcolor="#AC0B0B">
								  				        <td align="left" width="1"><img src="images/top-left-filled.png" width="12" height="41"></td>
											  	        <td class="heading_white">Role&nbsp;Name&nbsp;</td>
								  				        <td class="headingseparation"></td>
													
													<td class="heading_white">Edit/View Roles&nbsp;</td>
													<td align="right" width="2"><img src="images/top-right-filled.png" width="12" height="41" id="abc"></td>
								  			</tr>
								  			{if $NumRows gt 0}
								  				{foreach item=row from=$dataRow name=data}
										  			<tr>
										  				<td {if $smarty.foreach.data.iteration is odd} class="alternatetablerowtext1" {else} class="alternatetablerowtext3" {/if} colspan="2">{$row.RoleName|stripslashes}</td>
										  				<td class="alternatetablerowseparation"></td>
										    			 <td {if $smarty.foreach.data.iteration is odd} class="alternatetablerowtext5" {else} class="alternatetablerowtext6" {/if} colspan="2">
										    			            {if $ViewRolesRights eq "1" and $EditRolesRights eq "1"}
														    <a href="javascript:void(0)" onclick="fnc_loadRoleProfiles('{$row.RoleID}','{$row.RoleName}','{$intPageNumber}')">Edit</a>
														    {elseif $ViewRolesRights eq "1" and $EditRolesRights neq "1"}
														    <a href="javascript:void(0)" onclick="fnc_loadRoleProfiles('{$row.RoleID}','{$row.RoleName}','{$intPageNumber}')">View</a>
														    {/if}
														    &nbsp;
														
										    			</td>
										  			</tr>
										  		 {/foreach}
										  		{else}
										  			<tr>
										  				<td class="alternatetablerowtext1" colspan="1">&nbsp;</td>
								  						<td class="alternatetablerowtext2" colspan="3">No Roles Found</td>
								  						<td class="alternatetablerowtext5" colspan="1">&nbsp;</td>
								  					</tr>
								  				{/if}
								  		</table>
								  	</td>
								  </tr>
								</table>
								<table width="100%" border="0"  cellpadding="0" cellspacing="0" >
								  <tr>
								    <td align="left" width="13" valign="top"><img id="abc" src="images/bottom-left-thick.png" width="14" height="13"></td>
								    <td  background="images/bot_bg.gif">&nbsp;</td>
								    <td align="right" width="13" valign="top"><img id="abc" src="images/bottom-right-thick.png" width="14" height="13"></td>
								  </tr>
			  				</table>
							</TD>
						</tr>
						<tr>
			  			<td>&nbsp;</td>
			  		</tr>
			  		<!--<tr>
			  			<td>
			  				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
								  <tr>
								    <td align="left" width="1%"><img id="abc" src="images/left-small.png" width="11" height="30"></td>
								    <td width="98%" align="right" valign="middle" background="images/footer_bg.gif"><a href="javascript:void(0)" class="toplinkswhite" onclick="fnc_Logout();">Logout</a>&nbsp;</td>
								    <td align="right" width="1%"><img id="abc" src="images/right-small.png" width="11" height="30"></td>
								  </tr>
			  				</table>
			  			</td>
			  		</tr>-->
					</table>
				</td>
  		</tr>
	</table>
    {/if}
 
Return current item: Business Customer and Lead Management