$photoTool->flip(IMG_PATH_BASE . $filePath, IMG_PATH_BASE . $filePath, -90);
            $widthTmp = $photoInfo['width'];
            $photoInfo['width'] = $photoInfo['height'];
            $photoInfo['height'] = $widthTmp;
        }
        unset($exifInfo);
        $photoTool->copyImageWithSize(IMG_PATH_BASE . $filePath, IMG_PATH_BASE . $filePathSmall, $photoInfo['width'], $photoInfo['height']);
    }
    //unlink(IMG_PATH_BASE.$filePath);
    $param['event'] = $_POST['event'];
    $param['accessToken'] = $_COOKIE['accessToken'];
    if (isset($filePathSmall) && $filePathSmall) {
        $param['photo'] = $filePathSmall;
    }
    $result = Fcurl::get('user/createEventForContact', $param);
    Fcurl::header('contact_info.php?phoneNum=' . $param['phoneNum'] . '&id=' . $param['id']);
} else {
    $userProfile = Fcurl::get('contact/getContactProfile', $param);
}
?>
<body>
<?php 
require_once 'blank.php';
?>
<div class="navbar-fixed">
<nav class="teal lighten-1" role="navigation">
  <div class="nav-wrapper">
    <a id="logo-container" href="#" class="brand-logo">新增跟进</a>
    <ul class="right hide-on-med-and-down">
    </ul>
<?php

require_once 'header1.php';
require_once 'black_ipad.php';
if ($_GET['phoneNum']) {
    Fcurl::header('audition_second.php?phoneNum=' . $_GET['phoneNum']);
    exit;
}
?>
<body>
<?php 
require_once 'blank.php';
?>
<div class="navbar-fixed">
<nav class="teal lighten-1" role="navigation">
  <div class="nav-wrapper">
  	<ul class="left">
      <li><a href="audition_index.php"><i class="mdi-image-navigate-before"></i></a></li>
    </ul>
    <a id="logo-container" href="#" class="brand-logo">面试</a>
    <ul class="right hide-on-med-and-down">
    </ul>
  </div>
</nav>
</div>

<main>
<p>&nbsp;</p>
<div class="container">
	<div id="search-bar" class="row " style="padding-top: .5em;width:100%">
	<form action="#" method="get">