Novel Cinnamic Acid Derivatives Containing the 1,3,4-Oxadiazole Moiety: Design, Synthesis, Antibacterial Activities, and Mechanisms.