Jump to content

How to add check in <href>


divadiva

Recommended Posts

Experts

 

I have a php page(editquotes) which is referenced to other page(editinvent).Is there a way I can display only part 'editinvent' page not entire page?Some sort of a check ,Is it possible?

 

 
<TD><B>Items</B></TD> 
<TD ALIGN="RIGHT"><% if($q_row['status_quote'] < { %><A HREF="<%= 'editinvent.php?quote_id=' . $show ; %>">Add Item</A>
<% } %></TD> 

 

Best Regards,

Divya

Link to comment
https://forums.phpfreaks.com/topic/125790-how-to-add-check-in/
Share on other sites

I have 'edit quotes' page which is referenced to 'edit invent'page.When I hit 'editquote' page ,entire 'editinvent'page opens up.There is ia field (drop down menu) "status" in "editinvent".The values are coming from database.I want to display only one value for that "status" field.

 

Incase you want to look here is edit quote page:

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"> 
						 <TBODY> 
							<TR> 
							  <TD><B>Inventory Items</B></TD> 
							  <TD ALIGN="RIGHT"><% if($q_row['status_quote'] < { %><A HREF="<%= 'editinvent.php?quote_id=' . $show ; %>">Add
								 Item</A><% } %></TD> 
							</TR> 
							<TR> 
							  <TD COLSPAN="2"><IMG SRC="../images/blank.gif"
								 WIDTH="1" HEIGHT="10" BORDER="0" ALT=""></TD> 
							</TR> 
							<TR> 
							  <TD COLSPAN="2"> 
								 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1"
								  CLASS="gtable" WIDTH="100%"> 
									<TBODY> 
									  <TR> 
										 <TH WIDTH="30"><NOBR>Item</NOBR></TH> 
										 <TH WIDTH="20"><NOBR>Qty</NOBR></TH> 
										 <TH><NOBR>Tool</NOBR></TH> 
										 <TH><NOBR>OEM</NOBR></TH> 
										 <TH><NOBR>Model</NOBR></TH> 
										 <TH><NOBR>Description</NOBR></TH> 
										 <TH><NOBR>Sale Condition</NOBR></TH> 
										 <TH><NOBR>Serial No.</NOBR></TH> 
										 <TH><NOBR>Price $</NOBR></TH> 
										 <TH WIDTH="10"> </TH> 
									  </TR>
									  <% if($q_row['status_quote'] <  { %>
									  <TR> 
										 <TD WIDTH="30"><I CLASS="red">[edit]</I></TD> 
										 <TD WIDTH="20"> </TD> 
										 <TD> </TD> 
										 <TD> </TD> 
										 <TD> </TD> 
										 <TD> </TD> 
										 <TD> </TD> 
										 <TD> </TD> 
										 <TD> </TD> 
										 <TD WIDTH="10"> </TD> 
									  </TR>
							  			<%
							  			}
							  while($i_row = mysql_fetch_array($query)) {
							  		$this_price = $i_row['price_quoted'] + $i_row['price_install'] + $i_row['price_ref_parts'] + $i_row['price_ref_lab']  + $i_row['price_war_parts'] + $i_row['price_war_lab'] ;
							  		$price_inv += $this_price ;
							  		// terms array for below
							  		$ic++ ;
										$terms[$ic]['tool_id'] = $i_row['tool_id'];
										$terms[$ic]['inv_id'] = $i_row['inventory_id'];
										$terms[$ic]['location'] = $i_row['location'];
										if($i_row['lead_time'] && $i_row['lead_type']) {
											$terms[$ic]['lead'] = $i_row['lead_time'] . ' ' . $i_row['lead_type'];
										}
										else {
											$terms[$ic]['lead'] = '';
										}
										if($i_row['install']=='y') {
											$install = 1 ;
										}
										%>
									  <TR VALIGN="TOP"> 
										 <TD VALIGN="TOP" WIDTH="30">
										<% if($q_row['status_quote'] <  { %>
											<A
											 HREF="<%= 'editqitem.php?quote_id=' . $show . '&inv_id=' . $i_row['inventory_id'] ; %>">
											<%= str_pad( $ic , 2 , '0' , STR_PAD_LEFT ) ; %></A>
											<%
										} 
										else { 
											print str_pad( $ic , 2 , '0' , STR_PAD_LEFT ) ;  } 
										%>
										 </TD> 

  </BODY>
</HTML>

 

 

Here is edit invent:

 // build inv status array
  $result = mysql_query( "SELECT * FROM `inv_status` ORDER BY `status`" );
  while($a_row = mysql_fetch_array($result)){
    $stv = $a_row['status'];
    $globvars['inv_status'][$stv] = $a_row['status_desc'];
  } 
  
         <TD ALIGN="RIGHT"> <% if($quote_id) { %>
          <A HREF="<%= 'editquote.php?show=' . $quote_id ; %>">Return to quote</A><% } else { %>
          <A HREF="<%= 'editinvent.php?addnew=1&quote_id=' . $quote_id ; %>">Add New Item</A><% } %>
          </TD>
<% } %>
        </TR> 
        <TR> 
                          <TR VALIGN="MIDDLE"> 
                        <TD VALIGN="MIDDLE"><B>Status</B></TD>
                        <TD VALIGN="MIDDLE" COLSPAN="2"> 
                        <SELECT NAME="sstatus" SIZE="1"> 
                          <OPTION VALUE="A">(All)</OPTION> 
                          <OPTION VALUE="N" SELECTED="SELECTED">(All not sold)</OPTION> 
<% 
    <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"> 
      <TBODY> 
        <TR> 
          <TD><B>Search Results</B></TD>
          <TD ALIGN="CENTER" CLASS="red"><%= $msg ; %></TD>
          <TD ALIGN="RIGHT" CLASS="red"><A
       

 

 

 

Thanks in advance.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/125790-how-to-add-check-in/#findComment-650457
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.