Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php break;?>
- <?php case"add":?>
- <?php if($user->userlevel == 5): print Filter::msgInfo(lang('PROJ_NOPERM'), false); return; endif;?>
- <?php $ptype = $content->getProjectTypes();?>
- <?php $userlist = $user->getUserList(1);?>
- <?php $marcalist = $content->getMarca();?>
- <?php $tipoapp = $content->getTipoApp();?>
- <script language="javascript" type="text/javascript">
- // Roshan's Ajax dropdown code with php
- // This notice must stay intact for legal use
- // Copyright reserved to Roshan Bhattarai - [email protected]
- // If you have any problem contact me at http://roshanbh.com.np
- function getXMLHTTP() { //fuction to return the xml http object
- var xmlhttp=false;
- try{
- xmlhttp=new XMLHttpRequest();
- }
- catch(e) {
- try{
- xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
- }
- catch(e){
- try{
- xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch(e1){
- xmlhttp=false;
- }
- }
- }
- return xmlhttp;
- }
- function getState(client_id) {
- var strURL="apparecchiodrop.php?="+client_id;
- var req = getXMLHTTP();
- if (req) {
- req.onreadystatechange = function() {
- if (req.readyState == 4) {
- // only if "OK"
- if (req.status == 200) {
- document.getElementById('statediv').innerHTML=req.responseText;
- } else {
- alert("There was a problem while using XMLHTTP:\n" + req.statusText);
- }
- }
- }
- req.open("GET", strURL, true);
- req.send(null);
- }
- }
- </script>
- <h1><img src="../images/projects.png" alt="" /><?php echo lang('PROJ_TITLE1');?></h1>
- <p class="info"><?php echo lang('PROJ_INFO1') . lang('REQFIELD1') . required() . lang('REQFIELD2');?></p>
- <div class="block-border">
- <div class="block-content">
- <form action="" method="post" id="admin_form" name="admin_form">
- <table cellspacing="0" cellpadding="0" class="forms">
- <thead>
- <tr>
- <th colspan="2" class="left"><?php echo lang('PROJ_SUB1');?></th>
- </tr>
- </thead>
- <tr>
- <tr>
- <th><?php echo lang('INVC_CNAME');?>: <?php echo required();?></th>
- <td><select name="client_id" class="custombox" style="width:250px" onChange="getState(this.value)">
- <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option>
- <?php if($userlist):?>
- <?php foreach ($userlist as $crow):?>
- <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option>
- <?php endforeach;?>
- <?php unset($crow);?>
- <?php endif;?>
- </select>
- <a href="index.php?do=clients-rip&action=add"><img src="../images/client-overview.png" alt="" class="tooltip img-wrap2" title="<?php echo lang('PROJ_ADDCLIENTE');?>"/></a>
- </td>
- </tr>
- <tr>
- <th><?php echo lang('INVC_CNAME');?>: <?php echo required();?></th>
- <select name="apparecchio" class="custombox" style="width:250px">
- <td><div id="statediv"><select name="state" >
- <option>Seleziona prima il Cliente</option>
- </select></div></td>
- </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement