heb bestaande software gekregen maar werkt niet lekker

  • Onderwerp starter Onderwerp starter apbt
  • Startdatum Startdatum
Status
Niet open voor verdere reacties.

apbt

Gebruiker
Lid geworden
6 feb 2015
Berichten
28
hallo

ik heb bestaande software gekregen maar het werkt niet helemaal naar behoren.

als je bent ingelogd met:
test
test123

en je dan search dog 123 doet en er dan op klikt en hem wil updaten krijg je
1 niet de css te zien als de rest van de software
2 hij wil de boel daar niet saven


http://dogregistry.sportingapbt.com...&landofstanding=&color=&kennel=&action=Search

kan iemand me vertellen waar de fout zit of hoe ik die op kan sporen.
 
Laatst bewerkt:
Zonder dat we de code van je pagina zien kunnen we je niet helpen.

Kan wel inloggen op je site en kijken maar waar het gebeurd is je code en daar zit waarschijnlijk iets fout dus moet je dat laten zien :)

Gr,
Patrick
 
dit moet de code zijn


Code:
<?php
// +----------------------------------------------------------------------+
// | Copyright (c) 2006-2009 Karin Schellner                              |
// +----------------------------------------------------------------------+
// | This program is free software: you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation, either version 3 of the License, or    |
// | (at your option) any later version.                                  |
// |                                                                      |
// | This program is distributed in the hope that it will be useful,      |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
// | GNU General Public License for more details.                         |
// |                                                                      | 
// | You should have received a copy of the GNU General Public License    |
// | along with this program. If not, see <http://www.gnu.org/licenses/>. |
// +----------------------------------------------------------------------+	
?>

<script>

	var predefinedMaxWidth = <?php echo $MEDIUM_WIDTH ?>;
	
	function getImageWidth(myImgObj) {
		if (myImgObj != null)
			return myImgObj.width;
		else
			return -1;
	}
	
	function setToProperWidth(imgEl) {
		var imgWidth = this.getImageWidth(imgEl);
		if ((imgWidth != null) && (imgWidth != -1) && (imgWidth != 0)) {
			if (imgWidth >= predefinedMaxWidth) 
				imgEl.width = predefinedMaxWidth;
		} else {
			imgEl.width = predefinedMaxWidth;
		}
	}
</script>

<?

	// Read list of countries from file
	$countryArr = file ('countries.txt');

		$query = "SELECT * FROM dog WHERE id=$currId";

		$result = mysql_query($query) or die('Query failed: ' . mysql_error());

		$line = mysql_fetch_object($result);

?>



<form action="update.php" name="updateForm" method="get">

<table><tr><td>

<!--div style="float:left; "-->

	<div class="box" align="center">

		<h3><?php echo $line->name; ?></h3>

		<div id="photos">
			<a href="javascript:setDogId(<? echo $currId ?>);addPhoto();panel.show();">Add Photo</a>
			<br>	
		<?
		// retrieve and display all photos 
		//$images = getImagesWithIds($currId);
		$photoDAO = new PhotoDAO();
		$images = $photoDAO->getPhotoDAOs($currId);
		foreach ($images as $key => $value) { ?>
				<div id="photo_<? echo $key ?>">
					<hr><br>
					<p>					
					<img src="<? echo $value->reference ?>" name="img_<?php echo $key ?>" alt="<? echo $value->reference ?>" onLoad="setToProperWidth(this);"/><br>
					<script>
						/*var imgName = "img_"+<?php echo $key ?>;
						var img = document.images[imgName];
						if (img != null) 
							setToProperWidth(img);*/
					</script>
					<p align="center"><label>
							<input type="radio" class="radio" name="primary_img" value="<? echo $key ?>" 
							<? if ($value->primary_img == 1) echo "checked='checked'"?> onChange="startSetPrimaryPhoto(<? echo $key ?>, <? echo $currId ?>);" >Set as primary photo 
					</label></p>
					<table width="100%" border="0">
					  <tr>
						<td><label><b>Copyright: </b></label></td>
						<td>
							<input type="text" name="copyright_<? echo $key ?>" value="<? echo htmlspecialchars($value->copyright) ?>" size="30" readonly="readonly"/>
							<input type="button" name="editSave_<? echo $key ?>" value="edit" onClick="editSaveCopyright(<? echo $key ?>);"/>
						</td>
					  </tr>
					  <tr>
						<td><label>Posted by: </label></td>
						<td>
							<input type="text" name="postedBy_<? echo $key ?>" value="<? echo htmlspecialchars($value->posted_by) ?>" size="30" readonly="readonly" />
							<input type="button" name="editSavePhotoPostedBy_<? echo $key ?>" value="edit" onClick="editSavePhotoPostedBy(<? echo $key ?>);"/>						
						</td>
					  </tr>
					  <tr>
						<td><label>Notes: </label></td>
						<td>
							<input type="text" name="photonotes_<? echo $key ?>" value="<? echo htmlspecialchars($value->notes) ?>" size="30" readonly="readonly" />
							<input type="button" name="editSavePhotonotes_<? echo $key ?>" value="edit" onClick="editSavePhotonotes(<? echo $key ?>);"/>						
						</td>
					  </tr>
					</table>
					<a href="javascript:deletePhoto(<? echo $key ?>);panel.show();">Delete photo</a>
				</p>
				</div>
		<? } ?>
		</div>
	</div>

<!--/div-->

</td>

<td valign="top" style="padding: 15px" >

<div>


		  <table width="400px">
			
			  <tr>
			
				<td><strong>Breeder: </strong></td>
			
				<td><table><tr><td><label id="breeder"><? 
			
								$q="SELECT person_id FROM breeders_dogs WHERE dog_id=$currId";
			
								$r = mysql_query($q) or die('Query failed: ' . mysql_error());
			
								while ($l = mysql_fetch_object($r)) {
			
									$r2 = mysql_query("SELECT firstname, lastname FROM person WHERE id=$l->person_id") or die ('Query failed: ' . mysql_error());
			
									$l2 = mysql_fetch_object($r2);
			
									echo "<span id='breeder$l->person_id' style='white-space:nowrap'>";
			
									echo "$l2->firstname $l2->lastname ";
			
									//echo "<a href='#' onClick='startEditPerson($l->person_id);panel.show();'><img src='images/edit.png' alt='edit'/></a> ";
			
									echo "<a href='#' onClick='setDeleteTextOnPersonPanel($l->person_id,\"breeder\");panel.show();'><img src='images/drop.gif' alt='delete'/></a><br>";
			
									echo "</span>";
			
								}
			
								//if (empty($l2->lastname)) 
			
									//echo "unknown";
			
							?>
			
							</label></td>
			
							<td><input type="button" class="button" value="Add breeder" onClick="setCountrySelectBox('<? echo writeCountrySelectHtml($countryArr) ?>');setDogId('<? echo "$currId" ?>');setRole('breeder');setSearchTextOnPersonPanel('contextMode');panel.show();"/>
			
					</td></tr></table></td>
			
			  </tr>			  
			
			  <tr>
			
				<td><strong>Owner: </strong></td>
			
				<td><table><tr><td><label id="owner"><? 
			
								$q="SELECT person_id FROM owners_dogs WHERE dog_id=$currId";
			
								$r = mysql_query($q) or die('Query failed: ' . mysql_error());
			
								while ($l = mysql_fetch_object($r)) {
			
									$r2 = mysql_query("SELECT firstname, lastname FROM person WHERE id=$l->person_id") or die ('Query failed: ' . mysql_error());
			
									$l2 = mysql_fetch_object($r2);
			
									echo "<span id='owner$l->person_id' style='white-space:nowrap'>";
			
									echo "$l2->firstname $l2->lastname ";
			
									//echo "<a href='#' onClick='startEditPerson($l->person_id);panel.show();'><img src='images/edit.png' alt='edit'/></a> ";
			
									echo "<a href='#' onClick='setDeleteTextOnPersonPanel($l->person_id,\"owner\");panel.show();'><img src='images/drop.gif' alt='delete'/></a><br>";
			
									echo "</span>";
			
								}
			
								//if (empty($l2->lastname)) 
			
									//echo "unknown";
			
							?></label></td>
			
							<td><input type="button" class="button" value="Add owner" onClick="setCountrySelectBox('<? echo writeCountrySelectHtml($countryArr) ?>');setDogId('<? echo "$currId" ?>');setRole('owner');setSearchTextOnPersonPanel('contextMode');panel.show();"/>
			
							</td></tr></table></td>
			
			  </tr>
			
				
			
				</td>
			
			  </tr>
			
			  <tr><td>&nbsp;</td></tr>
			
			</table>
			
			
			
	<fieldset class="box">

	<table>
		<tr><td>			
			<table width="400px" border="0">
			  <tr>
				<td ><strong>Registered Name: </strong></td>
				<td><input style="width:200px"  name="name" value="<?php echo $line->name; ?>"/></td>
			  </tr>
			  <tr>
				<td ><strong>Registration Number: </strong></td>
				<td><input style="width:200px"  id="regNr" name="regnr" value="<?php echo $line->reg_nr; ?>"/></td>
			  </tr>
			  <tr>
				<td><strong>Racing Name: </strong></td>
				<td >
					<? 
						$tooltipText = 'Please leave this field empty if the dog races under its registered name.';
					?>
					<div onmouseover="Tip('<? echo $tooltipText ?>',OFFSETX, 30, OFFSETY,20, WIDTH, 270, BGCOLOR, '#CADCEB', BORDERCOLOR, '#115098',
							FONTCOLOR,'#354A6A',FONTFACE,'verdana,geneva,sans-serif',FONTSIZE,'10px', SHADOW, true, 
							SHADOWCOLOR,'#115098', SHADOWWIDTH,3,PADDING,2)"  >
						<input style="width:200px"  name="racingname" value="<?php echo $line->racing_name; ?>"/>
					</div>
				</td>
			  </tr>			
			  <tr>			
				<td><strong>Kennel:</strong> <label>(birthplace)</label></td>
			
				<td>
					<? 
						$tooltipText = 'By typing in the first letters you will receive a list of available entries. Choose a kennel from the list of available kennels or type in a new kennel name.';
					?>
					<div id="kennelDiv" style="padding-bottom:1em;" onmouseover="Tip('<? echo $tooltipText ?>',ABOVE,true,OFFSETX, 30, OFFSETY,20, WIDTH, 270, BGCOLOR, '#CADCEB', BORDERCOLOR, '#115098',
							FONTCOLOR,'#354A6A',FONTFACE,'verdana,geneva,sans-serif',FONTSIZE,'10px', SHADOW, true, 
							SHADOWCOLOR,'#115098', SHADOWWIDTH,3,PADDING,2)" >			
						<input id="kennelInput" style="width:200px;" type="text" name="kennel" value="<?php echo $line->kennel; ?>">
			
						<div id="kennelContainer">
			
						</div> 		
			
					</div>	
			
				</td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Sire: </strong></td>
			
				<td>
					<? 
						$tooltipText = 'By typing in the first letters you will receive a list of available entries. Here you can only choose from existing dogs! To add a new dog as parent, use the *Add Dog*-link on the pedigree-form.';
					?>
					<div class="sireDiv" style="padding-bottom:1em;" onmouseover="Tip('<? echo $tooltipText ?>',ABOVE, true,OFFSETX, 30, OFFSETY,20, WIDTH, 270, BGCOLOR, '#CADCEB', BORDERCOLOR, '#115098',
							FONTCOLOR,'#354A6A',FONTFACE,'verdana,geneva,sans-serif',FONTSIZE,'10px', SHADOW, true, 
							SHADOWCOLOR,'#115098',SHADOWWIDTH,3,PADDING,2)" >
			
						<? $sireId = $line->sire_id; ?>
			
						<input type="hidden" id="sireId" name="sireId" value="<? echo $sireId?>"/>
			
						<input id="sireInput" style="width:200px;z-index:9030;" value="<? 
			
						if ($sireId) {
			
							$sire_query="SELECT * FROM dog WHERE id=$sireId";
			
							$sire_result = mysql_query($sire_query) or die('Query failed: ' . mysql_error());
			
							$sire_line = mysql_fetch_object($sire_result);
			
							echo $sire_line->name;
			
						}
			
						?>">			
			
						<div id="sireContainer">
			
						</div> 
			
					</div>
			
				</td>
			
			  <tr>
			
			  <tr>
			
				<td><strong>Dam: </strong></td>
			
				<td>
			
					<div class="damDiv" style="padding-bottom:1em;" onmouseover="Tip('<? echo $tooltipText ?>', ABOVE,true, OFFSETX, 30, OFFSETY,20, WIDTH, 270, BGCOLOR, '#CADCEB', BORDERCOLOR, '#115098',
							FONTCOLOR,'#354A6A',FONTFACE,'verdana,geneva,sans-serif',FONTSIZE,'10px', SHADOW, true, 
							SHADOWCOLOR,'#115098', SHADOWWIDTH,3,PADDING,2)" >
			
						<? $damId = $line->dam_id; ?>
			
						<input type="hidden" id="damId" name="damId" value="<? echo $damId ?>"/>		
			
						<input id="damInput" style="width:200px;z-index:1;" name="dam" value="<?	
			
						if ($damId) {
			
							$dam_query="SELECT name FROM dog WHERE id=$damId";
			
							$dam_result = mysql_query($dam_query) or die('Query failed: ' . mysql_error());
							
							$dam_line =  mysql_fetch_object($dam_result);

							echo $dam_line->name;			
						}
			
						?>">
			
						<div id="damContainer">
			
						</div> 
			
					</div>
			
				</td>
			
			  </tr>  
			
				<td><strong>Call Name: </strong></td>
			
				<td><input style="width:200px"  name="nickname" value="<?php echo $line->nickname; ?>"></td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Sex: </strong></td>
			
				<td>
			
					<input type="radio" class="radio" name="sex" value="male" <?php if ($line->sex == "male") echo 'checked="checked"'; ?>><label>male</label>
			
					<input type="radio" class="radio" name="sex" value="female" <?php if ($line->sex == "female") echo 'checked="checked"'; ?>><label>female</label>
			
				</td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Date of Birth: </strong></td>
			
				<td>
			
						<?php
			
							$year = $line->yearofbirth;
			
							$month = $line->monthofbirth;
			
							$day = $line->dayofbirth;
			
						?>
			
						<table>
			
							<tr><th><label>day</label></th><th><label>month</label></th><th><label>year</label></th></tr>
			
						<tr><td>
			
								<select name="bday" size=1 >
			
									<option value="" >unknown</option>
			
									<option value="1" <?php if($day == "1") echo "selected='selected'"; ?>>1</option>
			
									<option value="2" <?php if($day == "2") echo "selected='selected'"; ?>>2</option>
			
									<option value="3" <?php if($day == "3") echo "selected='selected'"; ?>>3</option>
			
									<option value="4" <?php if($day == "4") echo "selected='selected'"; ?>>4</option>
			
									<option value="5" <?php if($day == "5") echo "selected='selected'"; ?>>5</option>
			
									<option value="6" <?php if($day == "6") echo "selected='selected'"; ?>>6</option>
			
									<option value="7" <?php if($day == "7") echo "selected='selected'"; ?>>7</option>
			
									<option value="8" <?php if($day == "8") echo "selected='selected'"; ?>>8</option>
			
									<option value="9" <?php if($day == "9") echo "selected='selected'"; ?>>9</option>
			
									<option value="10" <?php if($day == "10") echo "selected='selected'"; ?>>10</option>
			
									<option value="11" <?php if($day == "11") echo "selected='selected'"; ?>>11</option>
			
									<option value="12" <?php if($day == "12") echo "selected='selected'"; ?>>12</option>
			
									<option value="13" <?php if($day == "13") echo "selected='selected'"; ?>>13</option>
			
									<option value="14" <?php if($day == "14") echo "selected='selected'"; ?>>14</option>
			
									<option value="15" <?php if($day == "15") echo "selected='selected'"; ?>>15</option>
			
									<option value="16" <?php if($day == "16") echo "selected='selected'"; ?>>16</option>
			
									<option value="17" <?php if($day == "17") echo "selected='selected'"; ?>>17</option>
			
									<option value="18" <?php if($day == "18") echo "selected='selected'"; ?>>18</option>
			
									<option value="19" <?php if($day == "19") echo "selected='selected'"; ?>>19</option>
			
									<option value="20" <?php if($day == "20") echo "selected='selected'"; ?>>20</option>
			
									<option value="21" <?php if($day == "21") echo "selected='selected'"; ?>>21</option>
			
									<option value="22" <?php if($day == "22") echo "selected='selected'"; ?>>22</option>
			
									<option value="23" <?php if($day == "23") echo "selected='selected'"; ?>>23</option>
			
									<option value="24" <?php if($day == "24") echo "selected='selected'"; ?>>24</option>
			
									<option value="25" <?php if($day == "25") echo "selected='selected'"; ?>>25</option>
			
									<option value="26" <?php if($day == "26") echo "selected='selected'"; ?>>26</option>
			
									<option value="27" <?php if($day == "27") echo "selected='selected'"; ?>>27</option>
			
									<option value="28" <?php if($day == "28") echo "selected='selected'"; ?>>28</option>
			
									<option value="29" <?php if($day == "29") echo "selected='selected'"; ?>>29</option>
			
									<option value="30" <?php if($day == "30") echo "selected='selected'"; ?>>30</option>
			
									<option value="31" <?php if($day == "31") echo "selected='selected'"; ?>>31</option>
			
								</select>
			
							</td><td>
			
								<select name="bmonth" size=1>
			
									<option value="" >unknown</option>					
			
									<option value="1" <?php if($month == "1") echo "selected='selected'"; ?>>JAN</option>
			
									<option value="2" <?php if($month == "2") echo "selected='selected'"; ?>>FEB</option>
			
									<option value="3" <?php if($month == "3") echo "selected='selected'"; ?>>MAR</option>
			
									<option value="4" <?php if($month == "4") echo "selected='selected'"; ?>>APR</option>
			
									<option value="5" <?php if($month == "5") echo "selected='selected'"; ?>>MAY</option>
			
									<option value="6" <?php if($month == "6") echo "selected='selected'"; ?>>JUN</option>
			
									<option value="7" <?php if($month == "7") echo "selected='selected'"; ?>>JUL</option>
			
									<option value="8" <?php if($month == "8") echo "selected='selected'"; ?>>AUG</option>
			
									<option value="9" <?php if($month == "9") echo "selected='selected'"; ?>>SEP</option>
			
									<option value="10" <?php if($month == "10") echo "selected='selected'"; ?>>OCT</option>
			
									<option value="11" <?php if($month == "11") echo "selected='selected'"; ?>>NOV</option>
			
									<option value="12" <?php if($month == "12") echo "selected='selected'"; ?>>DEC</option>
			
								</select>
			
							</td><td>
			
								<input type="text" name="byear"  size=4 maxlength=4 value="<?php echo $year ?>">
			
							</td></tr>
			
						</table>
			
					</td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Date of Death: </strong></td>
			
				<td>
			
						<?php
			
							$year = $line->yearofdeath;
			
							$month = $line->monthofdeath;
			
							$day = $line->dayofdeath;
			
						?>
			
						<table>
			
							<tr><th><label>day</label></th><th><label>month</label></th><th><label>year</label></th></tr>
			
						<tr><td>
			
								<select name="dday" size=1 >
			
									<option value="" >unknown</option>
			
									<option value="1" <?php if($day == "1") echo "selected='selected'"; ?>>1</option>
			
									<option value="2" <?php if($day == "2") echo "selected='selected'"; ?>>2</option>
			
									<option value="3" <?php if($day == "3") echo "selected='selected'"; ?>>3</option>
			
									<option value="4" <?php if($day == "4") echo "selected='selected'"; ?>>4</option>
			
									<option value="5" <?php if($day == "5") echo "selected='selected'"; ?>>5</option>
			
									<option value="6" <?php if($day == "6") echo "selected='selected'"; ?>>6</option>
			
									<option value="7" <?php if($day == "7") echo "selected='selected'"; ?>>7</option>
			
									<option value="8" <?php if($day == "8") echo "selected='selected'"; ?>>8</option>
			
									<option value="9" <?php if($day == "9") echo "selected='selected'"; ?>>9</option>
			
									<option value="10" <?php if($day == "10") echo "selected='selected'"; ?>>10</option>
			
									<option value="11" <?php if($day == "11") echo "selected='selected'"; ?>>11</option>
			
									<option value="12" <?php if($day == "12") echo "selected='selected'"; ?>>12</option>
			
									<option value="13" <?php if($day == "13") echo "selected='selected'"; ?>>13</option>
			
									<option value="14" <?php if($day == "14") echo "selected='selected'"; ?>>14</option>
			
									<option value="15" <?php if($day == "15") echo "selected='selected'"; ?>>15</option>
			
									<option value="16" <?php if($day == "16") echo "selected='selected'"; ?>>16</option>
			
									<option value="17" <?php if($day == "17") echo "selected='selected'"; ?>>17</option>
			
									<option value="18" <?php if($day == "18") echo "selected='selected'"; ?>>18</option>
			
									<option value="19" <?php if($day == "19") echo "selected='selected'"; ?>>19</option>
			
									<option value="20" <?php if($day == "20") echo "selected='selected'"; ?>>20</option>
			
									<option value="21" <?php if($day == "21") echo "selected='selected'"; ?>>21</option>
			
									<option value="22" <?php if($day == "22") echo "selected='selected'"; ?>>22</option>
			
									<option value="23" <?php if($day == "23") echo "selected='selected'"; ?>>23</option>
			
									<option value="24" <?php if($day == "24") echo "selected='selected'"; ?>>24</option>
			
									<option value="25" <?php if($day == "25") echo "selected='selected'"; ?>>25</option>
			
									<option value="26" <?php if($day == "26") echo "selected='selected'"; ?>>26</option>
			
									<option value="27" <?php if($day == "27") echo "selected='selected'"; ?>>27</option>
			
									<option value="28" <?php if($day == "28") echo "selected='selected'"; ?>>28</option>
			
									<option value="29" <?php if($day == "29") echo "selected='selected'"; ?>>29</option>
			
									<option value="30" <?php if($day == "30") echo "selected='selected'"; ?>>30</option>
			
									<option value="31" <?php if($day == "31") echo "selected='selected'"; ?>>31</option>
			
								</select>
			
							</td><td>
			
								<select name="dmonth" size=1>
			
									<option value="" >unknown</option>					
			
									<option value="1" <?php if($month == "1") echo "selected='selected'"; ?>>JAN</option>
			
									<option value="2" <?php if($month == "2") echo "selected='selected'"; ?>>FEB</option>
			
									<option value="3" <?php if($month == "3") echo "selected='selected'"; ?>>MAR</option>
			
									<option value="4" <?php if($month == "4") echo "selected='selected'"; ?>>APR</option>
			
									<option value="5" <?php if($month == "5") echo "selected='selected'"; ?>>MAY</option>
			
									<option value="6" <?php if($month == "6") echo "selected='selected'"; ?>>JUN</option>
			
									<option value="7" <?php if($month == "7") echo "selected='selected'"; ?>>JUL</option>
			
									<option value="8" <?php if($month == "8") echo "selected='selected'"; ?>>AUG</option>
			
									<option value="9" <?php if($month == "9") echo "selected='selected'"; ?>>SEP</option>
			
									<option value="10" <?php if($month == "10") echo "selected='selected'"; ?>>OCT</option>
			
									<option value="11" <?php if($month == "11") echo "selected='selected'"; ?>>NOV</option>
			
									<option value="12" <?php if($month == "12") echo "selected='selected'"; ?>>DEC</option>
			
								</select>
			
							</td><td>
			
								<input type="text" name="dyear"  size=4 maxlength=4 value="<?php echo $year ?>">
			
							</td></tr>
			
						</table>
			
					</td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Land of Birth: </strong></td>
			
				<td>
			
						<? $landofbirth = $line->landofbirth;?>
			
						<select name="landofbirth" size=1>			
							<option value="">unknown</option>
							<? foreach ($countryArr as $c) {
								$country = trim($c);
								if ($landofbirth == $country) 
									echo "<option value='".$country."' selected='selected'>".$country."</option>";
								else 
									echo "<option value='".$country."' >".$country."</option>";
								} ?>			
						</select>				
			
					</td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Land of Standing: </strong></td>
			
				<td>
			
						<? $landofstanding = $line->landofstanding;?>		
			
						<select name="landofstanding" size=1>			
							<option value="">unknown</option>
								<? foreach ($countryArr as $c) {
								$country = trim($c);
								if ($landofstanding == $country) 
									echo "<option value='".$country."' selected='selected'>".$country."</option>";
								else 
									echo "<option value='".$country."' >".$country."</option>";
								} ?>
						</select>		
			
					</td>
			
			  </tr>	
			
			  <tr>			
				<td><strong>Size: </strong></td>		
				<td>
					<input style="width:40px"  name="size" value="<?php echo $line->size; ?>">
					<input type="radio" class="radio" name="sizeunit" value="cm" checked="checked"><label>cm</label>
					<input type="radio" class="radio" name="sizeunit" value="inch" ><label>inch</label>
				</td>		
			  </tr>			
			  
			  <tr>			
				<td><strong>Weight: </strong></td>			
				<td>
					<input style="width:40px"  name="weight" value="<?php echo $line->weight; ?>">
					<input type="radio" class="radio" name="weightunit" value="kg" checked="checked" ><label>kg</label>
					<input type="radio" class="radio" name="weightunit" value="pound" ><label>pound</label>				
				</td>			
			  </tr>
			  			
			  <tr>
			
				<td><strong>Colour: </strong></td>
			
				<td>
			
						<? $color = $line->color;?>		
			
						<select name="color" size=1>
			
							<option value="">unknown</option>
									
							<option value="Black"<?php if($color == "Black") echo "selected='selected'";?>>Black</option>
			
							<option value="Black Brindle"<?php if($color == "Black Brindle") echo "selected='selected'";?>>Black Brindle</option>
			
							<option value="Black Brindle and White"<?php if($color == "Black Brindle and White") echo "selected='selected'";?>>Black Brindle and White</option>
			
							<option value="Black and White"<?php if($color == "Black and White") echo "selected='selected'";?>>Black and White</option>
			
							<option value="Blue" <?php if($color == "Blue") echo "selected='selected'";?>>Blue</option>
			
							<option value="Blue Brindle" <?php if($color == "Blue Brindle") echo "selected='selected'";?>>Blue Brindle</option>
			
							<option value="Blue brindle and White" <?php if($color == "Blue brindle and White") echo "selected='selected'";?>>Blue brindle and White</option>
			
							<option value="Blue Fawn" <?php if($color == "Blue Fawn") echo "selected='selected'";?>>Blue Fawn</option>
			
							<option value="Blue Fawn and White" <?php if($color == "Blue Fawn and White") echo "selected='selected'";?>>Blue Fawn and White</option>
			
							<option value="Blue and White" <?php if($color == "Blue and White") echo "selected='selected'";?>>Blue and White</option>
			
							<option value="Brindle" <?php if($color == "Brindle") echo "selected='selected'";?>>Brindle</option>
			
							<option value="Brindle and White" <?php if($color == "Brindle and White") echo "selected='selected'";?> >Brindle and White</option>
			
							<option value="Brindle and White Ticked" <?php if($color == "Brindle and White Ticked") echo "selected='selected'";?>>Brindle and White Ticked</option>
						
							<option value="Brown"<?php if($color == "Brown") echo "selected='selected'";?>>Brown</option>

							<option value="Dark Brindle"<?php if($color == "Dark Brindle") echo "selected='selected'";?>>Dark Brindle</option>
			
							<option value="Dark Brindle and White"<?php if($color == "Dark Brindle and White") echo "selected='selected'";?>>Dark Brindle and White</option>
			
							<option value="Dark Fawn"<?php if($color == "Dark Fawn") echo "selected='selected'";?>>Dark Fawn</option>
			
							<option value="Dark Fawn and White"<?php if($color == "Dark Fawn and White") echo "selected='selected'";?>>Dark Fawn and White</option>
			
							<option value="Dark Red"<?php if($color == "Dark Red") echo "selected='selected'";?>>Dark Red</option>
			
							<option value="Dun"<?php if($color == "Dun") echo "selected='selected'";?>>Dun</option>
			
							<option value="Dun Brindle"<?php if($color == "Dun Brindle") echo "selected='selected'";?>>Dun Brindle</option>
			
							<option value="Dun Fawn"<?php if($color == "Dun Fawn") echo "selected='selected'";?>>Dun Fawn</option>
			
							<option value="Dun and White"<?php if($color == "Dun and White") echo "selected='selected'";?>>Dun and White</option>
			
							<option value="Fawn"<?php if($color == "Fawn") echo "selected='selected'";?>>Fawn</option>
			
							<option value="Fawn Brindle"<?php if($color == "Fawn Brindle") echo "selected='selected'";?>>Fawn Brindle</option>
			
							<option value="Fawn Brindle and White"<?php if($color == "Fawn Brindle and White") echo "selected='selected'";?>>Fawn Brindle and White</option>
			
							<option value="Fawn and White"<?php if($color == "Fawn and White") echo "selected='selected'";?>>Fawn and White</option>
			
							<option value="Light Brindle"<?php if($color == "Light Brindle") echo "selected='selected'";?>>Light Brindle</option>
			
							<option value="Light Brindle and White"<?php if($color == "Light Brindle and White") echo "selected='selected'";?>>Light Brindle and White</option>
			
							<option value="Light Fawn"<?php if($color == "Light Fawn") echo "selected='selected'";?>>Light Fawn</option>
			
							<option value="Light Fawn and White"<?php if($color == "Light Fawn and White") echo "selected='selected'";?>>Light Fawn and White</option>
			
							<option value="Red"<?php if($color == "Red") echo "selected='selected'";?>>Red</option>
			
							<option value="Red Brindle"<?php if($color == "Red Brindle") echo "selected='selected'";?>>Red Brindle</option>
			
							<option value="Red Brindle and White"<?php if($color == "Red Brindle and White") echo "selected='selected'";?>>Red Brindle and White</option>
			
							<option value="Red Fawn"<?php if($color == "Red Fawn") echo "selected='selected'";?>>Red Fawn</option>
			
							<option value="Red Fawn and White"<?php if($color == "Red Fawn and White") echo "selected='selected'";?>>Red Fawn and White</option>
			
							<option value="Red and White"<?php if($color == "Red and White") echo "selected='selected'";?>>Red and White</option>
			
							<option value="White"<?php if($color == "White") echo "selected='selected'";?>>White</option>
			
							<option value="White and Brindle"<?php if($color == "White and Brindle") echo "selected='selected'";?>>White and Brindle</option>
			
							<option value="White with Brindle Ticking"<?php if($color == "White with Brindle Ticking") echo "selected='selected'";?>>White with Brindle Ticking</option>
			
							<option value="White and Blue"<?php if($color == "White and Blue") echo "selected='selected'";?>>White and Blue</option>
			
							<option value="White and Blue Brindle"<?php if($color == "White and Blue Brindle") echo "selected='selected'";?>>White and Blue Brindle</option>
			
							<option value="White and Blue Fawn"<?php if($color == "White and Blue Fawn") echo "selected='selected'";?>>White and Blue Fawn</option>
			
							<option value="White with Blue Ticking"<?php if($color == "White with Blue Ticking") echo "selected='selected'";?>>White with Blue Ticking</option>
			
							<option value="White and Black"<?php if($color == "White and Black") echo "selected='selected'";?>>White and Black</option>
			
							<option value="White and Black Brindle"<?php if($color == "White and Black Brindle") echo "selected='selected'";?>>White and Black Brindle</option>
			
							<option value="White, Black and Blue"<?php if($color == "White, Black and Blue") echo "selected='selected'";?>>White, Black and Blue</option>
			
							<option value="White with Black Ticking"<?php if($color == "White with Black Ticking") echo "selected='selected'";?>>White with Black Ticking</option>
			
							<option value="White and Dark Brindle"<?php if($color == "White and Dark Brindle") echo "selected='selected'";?>>White and Dark Brindle</option>
			
							<option value="White with Dark Brindle Ticking"<?php if($color == "White with Dark Brindle Ticking") echo "selected='selected'";?>>White with Dark Brindle Ticking</option>
			
							<option value="White and Dark Fawn"<?php if($color == "White and Dark Fawn") echo "selected='selected'";?>>White and Dark Fawn</option>
			
							<option value="White and Dun"<?php if($color == "White and Dun") echo "selected='selected'";?>>White and Dun</option>
			
							<option value="White and Fawn"<?php if($color == "White and Fawn") echo "selected='selected'";?>>White and Fawn</option>
			
							<option value="White and Fawn Brindle"<?php if($color == "White and Fawn Brindle") echo "selected='selected'";?>>White and Fawn Brindle</option>
			
							<option value="White with Fawn Ticking"<?php if($color == "White with Fawn Ticking") echo "selected='selected'";?>>White with Fawn Ticking</option>
			
							<option value="White and Light Brindle"<?php if($color == "White and Light Brindle") echo "selected='selected'";?>>White and Light Brindle</option>
			
							<option value="White and Light Fawn"<?php if($color == "White and Light Fawn") echo "selected='selected'";?>>White and Light Fawn</option>
			
							<option value="White and Red"<?php if($color == "White and Red") echo "selected='selected'";?>>White and Red</option>
			
							<option value="White and Red Brindle"<?php if($color == "White and Red Brindle") echo "selected='selected'";?>>White and Red Brindle</option>
			
							<option value="White and Red Fawn"<?php if($color == "White and Red Fawn") echo "selected='selected'";?>>White and Red Fawn</option>
			
							<option value="White with Red Ticking"<?php if($color == "White with Red Ticking") echo "selected='selected'";?>>White with Red Ticking</option>
			
						</select>
			
					</td>
			
			  </tr>
			
			  <tr>
			
				<td><strong>Distinguishing Features: </strong></td>
			
				<td><input style="width:200px"  name="distinguishingfeatures" value="<?php echo $line->distinguishingfeatures; ?>"></td>
			
			  </tr>
			
				<tr>
			
				<td><strong>Titles: </strong></td>
			
				<td><input style="width:200px"  name="title" value="<?php echo $line->title; ?>"></td>
			
			  </tr>	
			
			</table>
		</td>
		<td valign="top">
			<p align="right">
					<? 
						$tooltipText = 'With this button, a copy of most data of this record is made. Use this button when you want to add a litter mate (as it is sharing a lot of data with your current dog).';
					?>
					<div onmouseover="Tip('<? echo $tooltipText ?>',OFFSETX, 30, OFFSETY,20, WIDTH, 270, BGCOLOR, '#CADCEB', BORDERCOLOR, '#115098',
							FONTCOLOR,'#354A6A',FONTFACE,'verdana,geneva,sans-serif',FONTSIZE,'10px', SHADOW, true, 
							SHADOWCOLOR,'#115098', SHADOWWIDTH,3,PADDING,2)" >
						<input type="button" class="button" name="action" onClick="clickedClone();return false;" value="Clone" style="text-align:left;width:72px;background-image:url(images/clone_icon.gif); background-repeat:no-repeat"/>
					</div>
			</p>				
			<strong>Notes: </strong><br>
			<textarea cols="30" rows="8" name="notes"><?php echo $line->notes; ?></textarea> 
		</td>
	</tr>
	<tr>
		<td colspan="2" style="padding-top:10px" align="center">
			<input type="hidden" name="id" value="<?php echo $currId; ?>" />
			<input type="button" class="button" name="action" onClick="checkEmptyDamSireField();startCheckRegNr(document.getElementById('regNr').value);return false;" value="Save" />
			<!--input type="submit" class="button" name="action" value="Cancel"/-->
		</td>
	</tr>	
</table>

	</fieldset>

</td>

</tr>

</table>

</form>

</div>



</div>

</div>

<script language="JavaScript">
 
dog_id = <? echo $currId ?>;


/* An XHR DataSource and Autocomplete for the Kennel field */ 
var kennelDataSource = new YAHOO.util.XHRDataSource("ajax/getKennels.php");
kennelDataSource.responseType = YAHOO.util.XHRDataSource.TYPE_TEXT
kennelDataSource.responseSchema = {
        recordDelim: ";",
        fieldDelim: ","
    };
kennelDataSource.maxCacheEntries = 5;
var kennelAutoComp = new YAHOO.widget.AutoComplete("kennelInput","kennelContainer", kennelDataSource); 

kennelAutoComp.animVert = true; 	 

kennelAutoComp.animSpeed = 0.3; 

kennelAutoComp.maxResultsDisplayed = 50; 

kennelAutoComp.minQueryLength = 1; 

kennelAutoComp.queryDelay = 0; 					

kennelAutoComp.typeAhead = false; 

kennelAutoComp.forceSelection = false; 

kennelAutoComp.alwaysShowContainer = false; 

// Enable an iFrame shim under the container element (needed for IE6 bug) 
kennelAutoComp.useIFrame = true; 

kennelAutoComp.formatResult = function(oResultItem, sQuery, sResultMatch) {
	var sKey = oResultItem[0];
	var sKeyQuery = sKey.substr(0, sQuery.length);
	var sKeyRemainder = sKey.substr(sQuery.length);	
	var aMarkup = ["<div class='ysearchresult'><span style='color:#CC9966'>",sKeyQuery,"</span>",sKeyRemainder,"</div>"];
	return (aMarkup.join(""));

}; 

 

/* An XHR DataSource and Autocomplete for the Sire field */

var sireDataSource = new YAHOO.util.XHRDataSource("ajax/getSires.php");
// ... send additional parameters
sireDataSource.scriptQueryAppend = "currId="+dog_id; 
// ... or configure the response type to be flat text...  
sireDataSource.responseType = YAHOO.util.XHRDataSource.TYPE_TEXT
sireDataSource.responseSchema = {
        recordDelim: ";",
        fieldDelim: ","
    };
sireDataSource.maxCacheEntries = 5;
var sireAutoComp = new YAHOO.widget.AutoComplete("sireInput","sireContainer", sireDataSource); 

// Container will expand and collapse vertically 

sireAutoComp.animVert = true; 	 

// Container will expand and collapse horizontally 

//sireAutoComp.animHoriz = true; 	 

// Container animation will take 2 seconds to complete 

sireAutoComp.animSpeed = 0.3; 

// Display up to 20 results in the container 

sireAutoComp.maxResultsDisplayed = 100; 

// Require user to type at least 3 characters before triggering a query 

sireAutoComp.minQueryLength = 3; 

// Every key input event will trigger an immediate query... 

sireAutoComp.queryDelay = 0; 					

// Do not automatically highlight the first result item in the container 

//sireAutoComp.autoHighlight = false; 

// Use a custom class for LI elements 

//sireAutoComp.highlightClassName = "myCustomHighlightClass"; 

// Enable type ahead 

sireAutoComp.typeAhead = false; 

// Enable force selection 

sireAutoComp.forceSelection = true; 

// Always show the container element 

sireAutoComp.alwaysShowContainer = false; 

// Disable the cache 

//sireDataSource.maxCacheEntries = 0; 				

// Match case sensitivity 

//sireDataSource.queryMatchCase = true;  

// Match results that *contain* the query string as well as results that start with query string 

//sireDataSource.queryMatchContains = true; 

// Match results of query strings that are *subsets* of the current query string 

//sireDataSource.queryMatchSubset = true;

sireAutoComp.itemSelectEvent.subscribe(mySireOnItemSelect);

function mySireOnItemSelect(sType, aArgs) {

	var oAutoComp = aArgs[0];

	var oItem = aArgs[1];

	var sire_id = oItem.firstChild.firstChild.value;

	//alert(" id-val: "+sire_id);

	var sireId_input = document.getElementById("sireId");

	sireId_input.value = sire_id;

}

sireAutoComp.formatResult = function(oResultItem, sQuery, sResultMatch) {

	var sKey = oResultItem[0];

	var sId = oResultItem[1];

	var sKeyQuery = sKey.substr(0, sQuery.length);

	var sKeyRemainder = sKey.substr(sQuery.length);

	var aMarkup = ["<div class='ysearchresult'><input type='hidden' value='",sId,"'/><span style='color:#CC9966'>",sKeyQuery,"</span>",sKeyRemainder,"</div>"];

	return (aMarkup.join(""));

};



/* An XHR DataSource and Autocomplete for the Dam field */ 
var damDataSource = new YAHOO.util.XHRDataSource("ajax/getDams.php");
// ... send additional parameters
damDataSource.scriptQueryAppend = "currId="+dog_id; 
// ... or configure the response type to be flat text...  
damDataSource.responseType = YAHOO.util.XHRDataSource.TYPE_TEXT
damDataSource.responseSchema = {
        recordDelim: ";",
        fieldDelim: ","
    };
damDataSource.maxCacheEntries = 5;
var damAutoComp = new YAHOO.widget.AutoComplete("damInput","damContainer", damDataSource); 

damAutoComp.animVert = true; 	 

damAutoComp.animSpeed = 0.3; 

damAutoComp.maxResultsDisplayed = 100; 

damAutoComp.minQueryLength = 3; 

damAutoComp.queryDelay = 0; 					

damAutoComp.typeAhead = false; 

damAutoComp.forceSelection = true; 

damAutoComp.alwaysShowContainer = false; 

damAutoComp.itemSelectEvent.subscribe(myDamOnItemSelect);

function myDamOnItemSelect(sType, aArgs) {

	var oItem = aArgs[1];

	var dam_id = oItem.firstChild.firstChild.value;

	var damId_input = document.getElementById("damId");

	damId_input.value = dam_id;

}

damAutoComp.formatResult = function(oResultItem, sQuery, sResultMatch) {

	var sKey = oResultItem[0];

	var sId = oResultItem[1];

	var sKeyQuery = sKey.substr(0, sQuery.length);

	var sKeyRemainder = sKey.substr(sQuery.length);

	var aMarkup = ["<div class='ysearchresult'><input type='hidden' value='",sId,"'/><span style='color:#CC9966'>",sKeyQuery,"</span>",sKeyRemainder,"</div>"];

	return (aMarkup.join(""));

}; 


</script>
 
Weer kunnen wel 400 regels (ofzo) doorspitten. Maar heb je al bij de maker geïnformeerd?
 
De maker geeft geen support meer. En op fb is een groep met mensen die het gebruiken maar daar krijg ik geen antwoord.

Zelf denk ik dat de css niet meegegeven wordt en dat de button niet goed is. Want als je erop klikt gebeurt er helemaal niks.
 
Wat ik kan verzinnen is: debuggen!

Het kost wat tijd, maar gezien ik geen relevante code zie van tiental regels, denk ik dat niemand dit zomaar gaat onderzoeken.
 
Wat ik zie als je inlog en de regel aanklikt dan kom je op deze pagina terecht:
http://dogregistry.sportingapbt.com/details.php?id=63187
Wanneer je op update klikt om de gegevens bij te werken wordt je naar een andere pagina gebracht:
http://dogregistry.sportingapbt.com/manage.php?id=63187&action=Update

Het lijkt mij dat de "Manage.php" geen lay-out heeft en je daarom deze vreemde pagina zonder lay-out krijgt.

Lijkt me dat je hier dus verder moet gaan zoeken.

Als je dat dan vervolgens doet zie ik dit staan waar je CSS wordt geladen:
Manage.php:
<link href="http://dogregistry.sportingapbt.com/index.php/styles/basic.css" rel="stylesheet" type="text/css">

En details.php:
<link href="/styles/basic.css" rel="stylesheet" type="text/css">

Wellicht dat hier je probleem ligt.

Succes met het uitzoeken, en ik hoop je wat op weg geholpen te hebben.
 
Ik ben het eens met PHP4U debuggen is het beste wat je nu kan gaan doen.
Het is inderdaad wel een monster van een code, er zitten ook zeker nog wel wat dingen in die verbeterd kunnen worden door middel van een database te gebruiken.
 
Wat ik zie als je inlog en de regel aanklikt dan kom je op deze pagina terecht:
http://dogregistry.sportingapbt.com/details.php?id=63187
Wanneer je op update klikt om de gegevens bij te werken wordt je naar een andere pagina gebracht:
http://dogregistry.sportingapbt.com/manage.php?id=63187&action=Update

Het lijkt mij dat de "Manage.php" geen lay-out heeft en je daarom deze vreemde pagina zonder lay-out krijgt.

Lijkt me dat je hier dus verder moet gaan zoeken.

Als je dat dan vervolgens doet zie ik dit staan waar je CSS wordt geladen:
Manage.php:
<link href="http://dogregistry.sportingapbt.com/index.php/styles/basic.css" rel="stylesheet" type="text/css">

En details.php:
<link href="/styles/basic.css" rel="stylesheet" type="text/css">

Wellicht dat hier je probleem ligt.

Succes met het uitzoeken, en ik hoop je wat op weg geholpen te hebben.

thanks hier ga ik even naar kijken.
 
er zit een database aan gekoppeld of bedoel je wat anders dan ik denk.
 
de css wordt gedaan via de header.php

in de manage.php en detail.php komt niks voor met .css of uberhaupt css
 
het volgende was het probleem de include 'header.php'; stond verkeerd. de eerste is hoe het moet zijn en de tweede hoe het was.

Code:
<?php
// +----------------------------------------------------------------------+
// | Copyright (c) 2006-2009 Karin Schellner                              |
// +----------------------------------------------------------------------+
// | This program is free software: you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation, either version 3 of the License, or    |
// | (at your option) any later version.                                  |
// |                                                                      |
// | This program is distributed in the hope that it will be useful,      |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
// | GNU General Public License for more details.                         |
// |                                                                      | 
// | You should have received a copy of the GNU General Public License    |
// | along with this program. If not, see <http://www.gnu.org/licenses/>. |
// +----------------------------------------------------------------------+	
include 'header.php';
include_once("include/dogarchive.conf");

require_once("php_users/htdocs/users.inc");

Code:
<?php
// +----------------------------------------------------------------------+
// | Copyright (c) 2006-2009 Karin Schellner                              |
// +----------------------------------------------------------------------+
// | This program is free software: you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation, either version 3 of the License, or    |
// | (at your option) any later version.                                  |
// |                                                                      |
// | This program is distributed in the hope that it will be useful,      |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
// | GNU General Public License for more details.                         |
// |                                                                      | 
// | You should have received a copy of the GNU General Public License    |
// | along with this program. If not, see <http://www.gnu.org/licenses/>. |
// +----------------------------------------------------------------------+	

include_once("include/dogarchive.conf");

require_once("php_users/htdocs/users.inc");

include 'header.php';
 
beste u maakt gebruik van

mysql_ wordt best mysqli

<? wordt best <?php

bij upgrade
 
Zodra ik het allemaal een beetje snap zal ik daar eens naar gaan kijken.
 
beste u maakt gebruik van

mysql_ wordt best mysqli

<? wordt best <?php

bij upgrade

Er is meer dan alleen een 'i' toevoegen bij de overstap van MySQL-functies naar MySQLi-functies. Denk aan enkele extra argumenten die verwijzen naar de connectie, of een paar andere functies.
 
bekijk eens deze lijn komt wel iets meer voor


var aMarkup = ["<div class='ysearchresult'><input type='hidden' value='",sId,"'/><span style='color:#CC9966'>",sKeyQuery,"</span>",sKeyRemainder,"</div>"];

dit lijkt beter (dit lijkt me beter ook door 3 partij bevestigd te zien)

<div class='ysearchresult'><input type='hidden' value='"+sId+"'/>
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan