Location: PHPKode > projects > phpMyOrdering > phpMyOrdering-0.1.7-alpha/templates/default/default.tpl
<!-- manage applications -->
<script language="JavaScript" type="text/javascript" src="scripts/javascript/javascript.jquery.ui.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/javascript/javascript.jquery.ui.tabs.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/javascript/javascript.jquery.cookie.js"></script>
<script type="text/javascript" src="scripts/javascript/javascript.applications.js"></script>
<script type="text/javascript">
$(document).ready(function(){
 var tabID = $.cookie("tabID") || 0;
 $("#tabs").tabs({
  selected: tabID,
  show: function(junk,ui){
   $.cookie("tabID", ui.index);
  }
 });
});
</script>
<table width="100%" cellspacing="0" border="0" cellpadding="0">
 <tr>
  <td align="left">
   <table border="0" width="100%">
    <tr>
     <td><a href="javascript:popUp('help/help.html#admin_applications','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Manage Applications:</b><br>Here you can add, edit or delete new phpMyAuth SSO enabled web applications. <div class="copyright">*Once you create a new application you will want to assign specific groups and or user accounts to the application.</div></td>
    </tr>
    <tr>
     <td>{$message}</td>
    </tr>
    <tr>
     <td>
						<table border="0" width="100%">
       <tr>
        <td width="100%" valign="top">
									<div id="tabs">
          <ul id="tabID">
           <li><a href="#AddApp" >Add New Application</a></li>
           <li><a href="#EditApp">Edit Applications</a><li>
           <li><a href="#DelApp">Delete Applications</a><li>
											<li><a href="#ResourcePermissions">Application Permissions</a><li>
          </ul>
										<div id="AddApp">
           <table border="0" width="100%" cellspacing="5">
												<form name="addApplication" method="POST" action="{$URL}">
            <tr>
             <td colspan="3" nowrap><a href="javascript:popUp('help/help.html#new_application','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Add New Application:</b><div class="copyright">* Use this form to add new applications used for phpMyAuth SSO functionality.</div></td>
            </tr>
            <tr align="left">
             <td width="10%" nowrap><b>Name:</b></td>
             <td><input type="text" name="addAppName" value="{$addAppName}" style="width: 100%"></td>
             <td class="copyright" nowrap>{$addAppName_err}* Unique identifier</td>
            </tr>
            <tr>
             <td nowrap><b>Application URL:</b></td>
             <td><input type="text" name="addAppURL" value="{$addAppURL}" style="width: 100%"></td>
             <td class="copyright"  nowrap>{$addAppURL_err}* Application URL</td>
            </tr>
            <tr>
             <td valign="top" nowrap><b>Description:</b></td>
             <td><textarea name="addAppDescription" style="width: 100%" rows="5">{$addAppDescription}</textarea></td>
             <td class="copyright"  valign="top" nowrap>{$addAppDescription_err}* Application description</td>
            </tr>
            <tr>
             <td nowrap><b>Administrative user:</b></td>
             <td><input type="text" name="addAppAdmin" value="{$addAppAdmin}" style="width: 100%"></td>
             <td class="copyright" nowrap>{$addAppAdmin_err}* Application administrator</td>
            </tr>
            <tr>
             <td nowrap><b>Administrative email:</b></td>
             <td><input type="text" name="addAppEmail" value="{$addAppEmail}" style="width: 100%"></td>
             <td class="copyright" nowrap>{$addAppEmail_err}* Administrator email</td>
            </tr>
            <tr>
             <td>&nbsp;</td>
             <td align="center" nowrap><input name="AddApp" type="submit" value="Add New Application" rel="lightboxform"></td>
             <td>&nbsp;</td>
            </tr>
 				  					<tr>
             <td><input type="hidden" name="editAppID" value="{$editAppID}"></td>
             <td align="center"><input type="button" value="Clear Fields" onclick='ResetAddAppFields();'></td>
             <td>&nbsp;</td>
            </tr>
											 </form>
           </table>
  								</div>
										<div id="EditApp">
           <table border="0" width="100%" cellspacing="5">
												<form name="editApplication" method="POST" action="{$URL}">
												<tr>
													<td width="60%" valign="top">
              <table border="0" width="100%" cellspacing="5">
               <tr>
                <td colspan="3" nowrap><a href="javascript:popUp('help/help.html#new_application','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Add New Application:</b><div class="copyright">* Use this form to add new applications used for phpMyAuth SSO functionality.</div></td>
               </tr>
               <tr align="left">
                <td width="10%" nowrap><b>Name:</b></td>
                <td><input type="text" name="editAppName" value="{$editAppName}" style="width: 100%"></td>
                <td class="copyright"  nowrap>{$editAppName_err}* Unique identifier</td>
               </tr>
               <tr>
                <td nowrap><b>Application URL:</b></td>
                <td><input type="text" name="editAppURL" value="{$editAppURL}" style="width: 100%"></td>
                <td class="copyright"  nowrap>{$editAppURL_err}* Application URL</td>
               </tr>
               <tr>
                <td valign="top" nowrap><b>Description:</b></td>
                <td><textarea name="editAppDescription" style="width: 100%" rows="5">{$editAppDescription}</textarea></td>
                <td class="copyright"  valign="top" nowrap>{$editAppDescription_err}* Application description</td>
               </tr>
               <tr>
                <td nowrap><b>Administrative user:</b></td>
                <td><input type="text" name="editAppAdmin" value="{$editAppAdmin}" style="width: 100%"></td>
                <td class="copyright" nowrap>{$editAppAdmin_err}* Application administrator</td>
               </tr>
               <tr>
                <td nowrap><b>Administrative email:</b></td>
                <td><input type="text" name="editAppEmail" value="{$editAppEmail}" style="width: 100%"></td>
                <td class="copyright" nowrap>{$editAppEmail_err}* Administrator email</td>
               </tr>
               <tr>
                <td>&nbsp;</td>
                <td align="center" nowrap><input name="EditApp" type="submit" value="Edit Application" rel="lightboxform"></td>
                <td>&nbsp;</td>
               </tr>
    				  					<tr>
                <td><input type="hidden" name="editAppID" value="{$editAppID}"></td>
                <td align="center"><input type="button" value="Clear Fields" onclick='ReseteditAppFields();'></td>
                <td>&nbsp;</td>
               </tr>
              </table>
             </td>
             <td width="30%" valign="top">
              <table border="0" width="100%" cellspacing="5">
               <tr>
                <td><a href="javascript:popUp('help/help.html#app_list','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Select application:</b><div class="copyright">*Use this form to select a configued application to edit.</div></td>
               </tr>
               <tr>
                <td>{$appList}</td>
               </tr>
              </table>
             </td>
												</tr>
											</form>
											</table>
  								</div>
										<div id="DelApp">
           <table border="0" width="100%" cellspacing="5">
												<form name="delApplication" method="POST" action="{$URL}">
												<tr>
													<td width="60%" valign="top">
              <table border="0" width="100%" cellspacing="5">
               <tr>
                <td colspan="3" nowrap><a href="javascript:popUp('help/help.html#new_application','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Add New Application:</b><div class="copyright">* Use this form to add new applications used for phpMyAuth SSO functionality.</div></td>
               </tr>
               <tr align="left">
                <td width="10%" nowrap><b>Name:</b></td>
                <td><input type="text" name="delAppName" value="{$delAppName}" style="width: 100%"></td>
                <td class="copyright"  nowrap>{$delAppName_err}* Unique identifier</td>
               </tr>
               <tr>
                <td nowrap><b>Application URL:</b></td>
                <td><input type="text" name="delAppURL" value="{$delAppURL}" style="width: 100%"></td>
                <td class="copyright"  nowrap>{$delAppURL_err}* Application URL</td>
               </tr>
               <tr>
                <td valign="top" nowrap><b>Description:</b></td>
                <td><textarea name="delAppDescription" style="width: 100%" rows="5">{$delAppDescription}</textarea></td>
                <td class="copyright"  valign="top" nowrap>{$delAppDescription_err}* Application description</td>
               </tr>
               <tr>
                <td nowrap><b>Administrative user:</b></td>
                <td><input type="text" name="delAppAdmin" value="{$delAppAdmin}" style="width: 100%"></td>
                <td class="copyright" nowrap>{$delAppAdmin_err}* Application administrator</td>
               </tr>
               <tr>
                <td nowrap><b>Administrative email:</b></td>
                <td><input type="text" name="delAppEmail" value="{$delAppEmail}" style="width: 100%"></td>
                <td class="copyright" nowrap>{$delAppEmail_err}* Administrator email</td>
               </tr>
               <tr>
                <td>&nbsp;</td>
                <td align="center" nowrap><input name="DelApp" type="submit" value="Delete Application" onclick="return confirm( 'Are you sure you want to delete the application data for {$delAppName}?' )"></td>
                <td>&nbsp;</td>
               </tr>
    				  					<tr>
                <td>&nbsp;</td>
                <td align="center"><input type="button" value="Clear Fields" onclick='ResetdelAppFields();'></td>
                <td>&nbsp;</td>
               </tr>
              </table>
             </td>
             <td width="30%" valign="top">
              <table border="0" width="100%" cellspacing="5">
               <tr>
                <td><a href="javascript:popUp('help/help.html#app_list','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Select application:</b><div class="copyright">*Use this form to select a configued application to edit.</div></td>
               </tr>
               <tr>
                <td>{$appList}</td>
               </tr>
              </table>
             </td>
												</tr>
											</form>
											</table>
  								</div>
										<div id="ResourcePermissions">
           <table border="0" width="100%">
												<form name="resourcePermissions" method="POST" action="{$URL}">
												<tr>
													<td width="60%" valign="top">
              <table border="0" width="100%" cellspacing="5">
               <tr>
                <td colspan="3" nowrap><a href="javascript:popUp('help/help.html#new_application','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Edit application permissions:</b><div class="copyright">* Use this form to manage permissions for configured applications.</div></td>
               </tr>
               <tr align="left">
                <td width="10%" nowrap><b>Name:</b></td>
                <td>{$resPermAppName}<input type="hidden" name="resPermAppName" value="{$resPermAppName}"></td>
                <td class="copyright"  nowrap>{$resPermAppName_err}* Unique identifier</td>
               </tr>
               <tr>
                <td nowrap><b>Application URL:</b></td>
                <td>{$resPermAppURL}<input type="hidden" name="resPermAppURL" value="{$resPermAppURL}"></td>
                <td class="copyright"  nowrap>{$resPermAppURL_err}* Application URL</td>
               </tr>
               <tr>
                <td valign="top" nowrap><b>Description:</b></td>
                <td>{$resPermAppDescription}<input type="hidden" name="resPermAppDescription" value="{$resPermAppDescription}"></td>
                <td class="copyright"  valign="top" nowrap>{$resPermAppDescription_err}* Application description</td>
               </tr>
               <tr>
                <td nowrap><b>Administrative user:</b></td>
                <td>{$resPermAppAdmin}<input type="hidden" name="resPermAppAdmin" value="{$resPermAppAdmin}"></td>
                <td class="copyright" nowrap>{$resPermAppAdmin_err}* Application administrator</td>
               </tr>
               <tr>
                <td nowrap><b>Administrative email:</b></td>
                <td>{$resPermAppEmail}<input type="hidden" name="resPermAppEmail" value="{$resPermAppEmail}"></td>
                <td class="copyright" nowrap>{$resPermAppEmail_err}* Administrator email</td>
               </tr>
               <tr>
                <td colspan="3" nowrap><hr /></td>
               </tr>
               <tr>
                <td colspan="3" nowrap><a href="javascript:popUp('help/help.html#application_permission','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>{$editPermissionsMsg}</b></a></td>
               </tr>
               <tr>
                <td><b>Groups:</b></td>
                <td>{$GroupList}</td>
                <td class="copyright" nowrap>{$grpList_err}* Select group</td>
               </tr>
               <tr>
                <td>&nbsp;</td>
                <td colspan="2">
                 <table cellspacing="5">
                  <tr>
                   <td><b>Read:</b></td>
                   <td><input type="checkbox" name="permissions[{$resAppPermHash}][group][read]" value="1"></td>
                   <td><b>Write:</b></td>
                   <td><input type="checkbox" name="permissions[{$resAppPermHash}][group][write]" value="1"></td>
                  </tr>
                 </table>
                </td>
               </tr>
               <tr>
                <td><b>Users:</b></td>
                <td>{$UserList}</td>
                <td class="copyright" nowrap>{$usrList_err}* Select user</td>
               </tr>
               <tr>
                <td>&nbsp;</td>
                <td colspan="2">
                 <table cellspacing="5">
                  <tr>
                   <td><b>Read:</b></td>
                   <td><input type="checkbox" name="permissions[{$resAppPermHash}][user][read]" value="1"></td>
                   <td><b>Write:</b></td>
                   <td><input type="checkbox" name="permissions[{$resAppPermHash}][user][write]" value="1"></td>
                  </tr>
                 </table>
                </td>
               </tr>
               <tr>
                <td colspan="3">
                 {$objGrpPerms}
                </td>
               </tr>
               <tr>
                <td colspan="3">
                 {$objUsrPerms}
                </td>
               </tr>
               <tr>
                <td><input type="hidden" name="resPermAppID" value="{$editAppID}"></td>
                <td align="center" nowrap><input name="resPermApp" type="submit" value="Edit Application Permissions" rel="lighboxform"></td>
                <td>&nbsp;</td>
               </tr>
    				  					<tr>
                <td>&nbsp;</td>
                <td align="center"><input type="button" value="Clear Fields" onclick='ResetResPermAppFields();'></td>
                <td>&nbsp;</td>
               </tr>
              </table>
             </td>
             <td width="30%" valign="top">
              <table border="0" width="100%" cellspacing="5">
               <tr>
                <td><a href="javascript:popUp('help/help.html#group_list','800','800')"><img src="templates/{$SKIN}/images/help02.jpg" border="0"></a>&nbsp;&nbsp;<b>Select application:</b><div class="copyright">*Use this form to select a configured applicaiton to edit resource permissions.</div></td>
               </tr>
               <tr>
                <td>{$appList}</td>
               </tr>
              </table>
             </td>
												</tr>
											</form>
											</table>
  								</div>
  							</div>
        </td>
 						</tr>
      </table>
 				</td>
 			</tr>
  	</table>
		</td>
	</tr>
</table>
</form>
<!-- end manage application groups -->
Return current item: phpMyOrdering